diff options
author | Harshit Mogalapalli <[email protected]> | 2024-05-13 13:34:27 -0700 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2024-05-27 09:49:20 +0100 |
commit | a23c14b062d8800a2192077d83273bbfe6c7552d (patch) | |
tree | bba451c5f6c0ce45f452811515c0df67fee53c7c /net/unix/sysctl_net_unix.c | |
parent | bedb2ccb566de5ca0c336ca3fd3588cea6d50414 (diff) |
iio: temperature: mlx90635: Fix ERR_PTR dereference in mlx90635_probe()
When devm_regmap_init_i2c() fails, regmap_ee could be error pointer,
instead of checking for IS_ERR(regmap_ee), regmap is checked which looks
like a copy paste error.
Fixes: a1d1ba5e1c28 ("iio: temperature: mlx90635 MLX90635 IR Temperature sensor")
Reviewed-by: Crt Mori<[email protected]>
Signed-off-by: Harshit Mogalapalli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions