diff options
| author | Felix Gu <ustc.gu@gmail.com> | 2026-04-27 19:26:31 +0800 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2026-05-15 12:05:34 +0100 |
| commit | ba121d7582361fe74405f32724976aeff5c35177 (patch) | |
| tree | 32eae538a1ade057be5114b82a44241ebbfaa9d7 /scripts | |
| parent | d0a228d903425e653f18a4341e60c0538afb6d41 (diff) | |
iio: adc: meson-saradc: fix calibration buffer leak on error
meson_sar_adc_temp_sensor_init() allocates a buffer with
nvmem_cell_read(), but the old code leaked it if
syscon_regmap_lookup_by_phandle() failed.
Fix this by adding missing kfree(buf).
Fixes: d6f2eac64403 ("iio: adc: meson: no devm for nvmem_cell_get")
Signed-off-by: Felix Gu <ustc.gu@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
