Skip to content
Commit 536cc27d authored by Kangjie Lu's avatar Kangjie Lu Committed by Jonathan Cameron
Browse files

iio: hmc5843: fix potential NULL pointer dereferences



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>
parent a816646f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment