summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-cmp.c
diff options
context:
space:
mode:
authorHaibin Liu <haibinl@codeaurora.org>2017-12-05 15:06:18 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-01-11 23:36:14 -0800
commiteabe2326e13127fccb64fc1319a6e90080de5fb3 (patch)
tree01032d3766f674690a7724b9b7326a3b83a3763e /lib/mpi/mpi-cmp.c
parent04b6b652ac86f10c6f22c7de575be5e4ebcc48ea (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>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions