summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorFelix Gu <ustc.gu@gmail.com>2026-04-27 14:11:39 +0300
committerJonathan Cameron <jic23@kernel.org>2026-05-26 21:22:56 +0300
commit6325d6e2204327965b849c0a16efb6ac9202e5a8 (patch)
tree14686a5435a14a5f0c7686aa5709d8c29f441d67 /scripts
parent5a9c90350be4f6f175bdd193e8bd60a7aedfb4d2 (diff)
downloadlinux-6325d6e2204327965b849c0a16efb6ac9202e5a8.tar.xz
iio: buffer: hw-consumer: free scan_mask on buffer release
The scan_mask lifetime changed in commit 9a2e1233d38c ("iio: buffer: hw-consumer: remove redundant scan_mask flexible array"). Before that change, the scan mask storage was embedded in struct hw_consumer_buffer, so iio_hw_buf_release() could free the whole allocation with a single kfree(hw_buf). That commit moved the scan mask to a separate bitmap_zalloc() allocation stored in buffer.scan_mask, but left iio_hw_buf_release() unchanged. Free the scan mask in iio_hw_buf_release() before freeing the buffer wrapper. Fixes: 9a2e1233d38c ("iio: buffer: hw-consumer: remove redundant scan_mask flexible array") Signed-off-by: Felix Gu <ustc.gu@gmail.com> Reviewed-by: Nuno Sá <nuno.sa@analog.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions