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

Commit ca5afdda authored by Shrenuj Bansal's avatar Shrenuj Bansal
Browse files

msm: kgsl: Do not expose gpurev in kgsl to the userspace



Zero out the the gpu_id/gpurev passed to the userpace in the
adreno_getproperty ioctl so they cannot use it in any way. The
userspace should only need the chipid for chip detection.

Change-Id: I1689c3cc7b31d5fb69b912f8551943e59b35ad07
Signed-off-by: default avatarShrenuj Bansal <shrenujb@codeaurora.org>
parent 1bd946f4
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2472,7 +2472,6 @@ static int adreno_getproperty(struct kgsl_device *device,
			devinfo.device_id = device->id+1;
			devinfo.chip_id = adreno_dev->chip_id;
			devinfo.mmu_enabled = kgsl_mmu_enabled();
			devinfo.gpu_id = adreno_dev->gpurev;
			devinfo.gmem_gpubaseaddr = adreno_dev->gmem_base;
			devinfo.gmem_sizebytes = adreno_dev->gmem_size;

+0 −1
Original line number Diff line number Diff line
@@ -40,7 +40,6 @@ int adreno_getproperty_compat(struct kgsl_device *device,
			devinfo.device_id = device->id + 1;
			devinfo.chip_id = adreno_dev->chip_id;
			devinfo.mmu_enabled = kgsl_mmu_enabled();
			devinfo.gpu_id = adreno_dev->gpurev;
			devinfo.gmem_gpubaseaddr = adreno_dev->gmem_base;
			devinfo.gmem_sizebytes = adreno_dev->gmem_size;