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

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

Merge "msm: adsprpc: Fix adsprpc info leak"

parents a70d0a49 680d7ffd
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3587,8 +3587,10 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int ioctl_num,
			mutex_unlock(&fl->perf_mutex);

			if (fperf) {
				K_COPY_TO_USER(err, 0, (void *)p.perf.data,
					fperf, sizeof(*fperf));
				K_COPY_TO_USER(err, 0,
					(void *)p.perf.data, fperf,
					sizeof(*fperf) -
					sizeof(struct hlist_node));
			}
		}
		K_COPY_TO_USER(err, 0, param, &p.perf, sizeof(p.perf));