Merge "msm: camera: Add null check for VFE subdev"

This commit is contained in:
Linux Build Service Account
2012-10-05 14:43:52 -07:00
committed by Gerrit - the friendly Code Review server
+6 -2
View File
@@ -711,8 +711,12 @@ int msm_isp_config(struct msm_cam_media_controller *pmctl,
int rc = -EINVAL;
void __user *argp = (void __user *)arg;
struct v4l2_subdev *sd = pmctl->vfe_sdev;
struct v4l2_subdev *sd;
if (!pmctl->vfe_sdev) {
pr_err("%s vfe subdev is NULL\n", __func__);
return -ENXIO;
}
sd = pmctl->vfe_sdev;
D("%s: cmd %d\n", __func__, _IOC_NR(cmd));
switch (cmd) {
case MSM_CAM_IOCTL_CONFIG_VFE: