Skip to content

Commit

Permalink
Merge "msm: sensor: actuator: check NULL pointer for actuator ctrl" i…
Browse files Browse the repository at this point in the history
…nto LA.BR.1.2.9.1_rb1.5
  • Loading branch information
Linux Build Service Account authored and Gerrit - the friendly Code Review server committed Jun 20, 2018
2 parents c142ce5 + 82a1136 commit 7d8e543
Showing 1 changed file with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,10 @@ static void msm_actuator_parse_i2c_params(struct msm_actuator_ctrl_t *a_ctrl,
struct msm_camera_i2c_reg_array *i2c_tbl = a_ctrl->i2c_reg_tbl;
CDBG("Enter\n");

if (a_ctrl == NULL) {
pr_err("failed. actuator ctrl is NULL");
return;
}

if (a_ctrl->i2c_reg_tbl == NULL) {
pr_err("failed. i2c reg tabl is NULL");
if ((!a_ctrl) ||
(!a_ctrl->reg_tbl) ||
(!a_ctrl->i2c_reg_tbl)) {
pr_err("failed. NULL actuator pointers");
return;
}

Expand Down

0 comments on commit 7d8e543

Please sign in to comment.