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

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

msm: ais: ois: add conditional check for ioctl



Add conditional check when sending VIDIOC_MSM_OIS_CFG.

Change-Id: Ie12b13b2157f6ad42d8b1ee46bef166e8a47cb85
Signed-off-by: default avatarRahul Sharma <sharah@codeaurora.org>
parent e598aae8
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -828,6 +828,10 @@ static long msm_ois_subdev_do_ioctl(
			parg = &ois_data;
			parg = &ois_data;
			break;
			break;
		}
		}
		break;
	case VIDIOC_MSM_OIS_CFG:
		pr_err("%s: invalid cmd 0x%x received\n", __func__, cmd);
		return -EINVAL;
	}
	}
	rc = msm_ois_subdev_ioctl(sd, cmd, parg);
	rc = msm_ois_subdev_ioctl(sd, cmd, parg);