Skip to content

iio: buffer: allocation and freeing buffers fix and optimization

Andy Shevchenko linux-iio lkml 1 version Applied

Status from this message: Applied, but needed a bit of hand tweaking as patches have crossed with this.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 3 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2iio: buffer: Fix double-free in iio_buffers_alloc_sysfs_and_mask()drivers/iio/industrialio-buffer.c+1 -10 replies
2/2iio: buffer: Use dedicated variable in iio_buffers_alloc_sysfs_and_mask()drivers/iio/industrialio-buffer.c+7 -110 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAlexandru Ardelean
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] iio: buffer: allocation and freeing buffers fix and optimization

Yang submitted a fix, but I think the code can be refactored a bit to be more robust against similar mistakes in the future, if any.

In v2:
- put SoB Yang's patch (it's good for backporting)
- added refactoring patch on top of Yang's fix

Andy Shevchenko (1):
iio: buffer: Use dedicated variable in
iio_buffers_alloc_sysfs_and_mask()

Yang Yingliang (1):
iio: buffer: Fix double-free in iio_buffers_alloc_sysfs_and_mask()

 drivers/iio/industrialio-buffer.c | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)
Signature · 1 line
2.33.0