diff options
author | Dong Chenchen <[email protected]> | 2022-11-10 09:07:26 +0800 |
---|---|---|
committer | Jonathan Cameron <[email protected]> | 2022-11-12 17:49:22 +0000 |
commit | 20690cd50e68c0313472c7539460168b8ea6444d (patch) | |
tree | 9ba9115cdb22a1c4d05841ee0c4514e4d25b20c7 /scripts/gcc-plugins/gcc-generate-gimple-pass.h | |
parent | 6ac12303572ef9ace5603c2c07f5f1b00a33f580 (diff) |
iio: accel: bma400: Fix memory leak in bma400_get_steps_reg()
When regmap_bulk_read() fails, it does not free steps_raw,
which will cause a memory leak issue, this patch fixes it.
Fixes: d221de60eee3 ("iio: accel: bma400: Add separate channel for step counter")
Signed-off-by: Dong Chenchen <[email protected]>
Reviewed-by: Jagath Jog J <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-gimple-pass.h')
0 files changed, 0 insertions, 0 deletions