lkml.org 
[lkml]   [2021]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] iio: buffer: allocation and freeing buffers fix and optimization
Date
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(-)

--
2.33.0

\
 
 \ /
  Last update: 2021-10-13 11:50    [W:0.048 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site