commit | d91809f2a059d5002331ac6db4b9ec457ec65058 | [log] [tgz] |
---|---|---|
author | VijayaKumar T M <vtmuni@codeaurora.org> | Fri Mar 09 16:06:26 2018 +0530 |
committer | VijayaKumar T M <vtmuni@codeaurora.org> | Fri Mar 09 16:08:51 2018 +0530 |
tree | fea5f03be0a458183a07026996cc569785b9218b | |
parent | 7de48d1f7174517b3b0ff5b44bc99a474564ecb7 [diff] |
msm: sensor: actuator: add null pointer check for i2c array Issue: i2c_reg_tbl may be null under error condition when set param. then, other actuator function still may use the i2c_reg_tbl as null. Fix: 1) the assignment total_steps follow on kmalloc buffer. 2) Add NULL pointer check for i2c tbl. CRs-Fixed: 2152401 Change-Id: Ieec3d88e6dae0177787da0906f53d59ac4f5a624 Signed-off-by: Haibin Liu <haibinl@codeaurora.org> Signed-off-by: VijayaKumar T M <vtmuni@codeaurora.org>