Skip to content
Commit 8f18e0e2 authored by Kangjie Lu's avatar Kangjie Lu Committed by Paul Gortmaker
Browse files

iio: hmc5843: fix potential NULL pointer dereferences



commit 536cc27d upstream.

devm_regmap_init_i2c may fail and return NULL. The fix returns
the error when it fails.

Signed-off-by: default avatarKangjie Lu <kjlu@umn.edu>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent c6f00a51
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment