commit | 3bf35c2c4fd98057b68f2df835f9f0443e63566d | [log] [tgz] |
---|---|---|
author | Viswanadha Raju Thotakura <viswanad@codeaurora.org> | Thu Aug 31 10:48:30 2017 -0700 |
committer | Viswanadha Raju Thotakura <viswanad@codeaurora.org> | Thu Aug 31 10:48:30 2017 -0700 |
tree | 50b67a257eff950398b89158c92721ca4ea5940e | |
parent | f918ea4646481d8ed48fc1d870eb50fd824b20fc [diff] [blame] |
msm: camera: Correct the NULL check Add NULL check for input argument. Change-Id: I05daabd41d2650d5c09fea47b950c935064dac69 Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
diff --git a/drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_utils/cam_sensor_util.c b/drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_utils/cam_sensor_util.c index ea6f902..3334079 100644 --- a/drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_utils/cam_sensor_util.c +++ b/drivers/media/platform/msm/camera/cam_sensor_module/cam_sensor_utils/cam_sensor_util.c
@@ -82,7 +82,7 @@ (struct cam_cmd_unconditional_wait *) *cmd_buf; struct i2c_settings_list *i2c_list = NULL; - if (i2c_list == NULL) { + if (list_ptr == NULL) { CAM_ERR(CAM_SENSOR, "Invalid list ptr"); return -EINVAL; }