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

Commit 6997dcb7 authored by Mohammed Khajapasha's avatar Mohammed Khajapasha Committed by Gerrit - the friendly Code Review server
Browse files

msm-core: use get_user() API to read userspace data/settings



Currently userspace data is getting accessed directly
and leading to crash, So use get_user() API to copy
userspace data/settings to kernel space.

Change-Id: I3a75ec9503d8207829640bf88e1c3160bf72c9f0
Signed-off-by: default avatarMohammed Khajapasha <mkhaja@codeaurora.org>
parent 05a0c86d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -486,9 +486,9 @@ static long msm_core_ioctl(struct file *file, unsigned int cmd,
		return -EINVAL;

	get_user(cluster, &argp->cluster);
	mpidr = (argp->cluster << (MAX_CORES_PER_CLUSTER *
	mpidr = (cluster << (MAX_CORES_PER_CLUSTER *
			MAX_NUM_OF_CLUSTERS));
	cpumask = argp->cpumask;
	get_user(cpumask, &argp->cpumask);

	switch (cmd) {
	case EA_LEAKAGE: