[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211013094923.2473-1-andriy.shevchenko@linux.intel.com>
Date: Wed, 13 Oct 2021 12:49:21 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Alexandru Ardelean <aardelean@...iqon.com>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Jonathan Cameron <jic23@...nel.org>,
Lars-Peter Clausen <lars@...afoo.de>,
Yang Yingliang <yangyingliang@...wei.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Subject: [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(-)
--
2.33.0
Powered by blists - more mailing lists