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

Commit 032d8b4f authored by Rahul Sharma's avatar Rahul Sharma Committed by Gerrit - the friendly Code Review server
Browse files

msm: ais: sensor: flash: add conditional check for ioctl



Add conditional check when sending VIDIOC_MSM_FLASH_CFG
in 32-bit process.

Change-Id: Ia4255aba26c634018163e2cc3c1170f71b1eb661
CRs-Fixed: 2092793
Signed-off-by: default avatarRahul Sharma <sharah@codeaurora.org>
parent 8f09bb72
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1090,6 +1090,9 @@ static long msm_flash_subdev_do_ioctl(
			break;
		}
		break;
	case VIDIOC_MSM_FLASH_CFG:
		pr_err("invalid cmd 0x%x received\n", cmd);
		return -EINVAL;
	default:
		return msm_flash_subdev_ioctl(sd, cmd, arg);
	}