Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92c6d10b authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: adsprpc: Fix adsprpc info leak"

parents 2e0cbf3b f5ebb925
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4092,8 +4092,9 @@ static int fastrpc_getperf(struct fastrpc_ioctl_perf *ioctl_perf,
		mutex_unlock(&fl->perf_mutex);

		if (fperf) {
			K_COPY_TO_USER(err, 0, (void *)ioctl_perf->data,
				fperf, sizeof(*fperf));
			K_COPY_TO_USER(err, 0,
				(void *)ioctl_perf->data, fperf,
				sizeof(*fperf) - sizeof(struct hlist_node));
		}
	}
	K_COPY_TO_USER(err, 0, param, ioctl_perf, sizeof(*ioctl_perf));