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

This commit is contained in:
Linux Build Service Account 2017-09-13 10:58:07 -07:00 committed by Gerrit - the friendly Code Review server
commit 9d4ca70315

View file

@ -1092,6 +1092,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);
}