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

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

Merge "msm: adsprpc: Fix adsprpc info leak"

parents 909a0873 4d04bd5f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4038,8 +4038,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));