Re: [PATCH] iio: dummy_evgen: check iio_evgen in iio_dummy_evgen_free()

2019-07-28 Thread Jonathan Cameron
On Sat, 11 May 2019 20:14:24 +0800 Kefeng Wang wrote: > On 2019/5/11 16:58, Jonathan Cameron wrote: > > On Thu, 9 May 2019 10:04:47 +0800 > > Kefeng Wang wrote: > > > >> if iio_dummy_evgen_create() fails, iio_evgen should be NULL, when call > >> iio_evgen_release() to cleanup, it throws some w

Re: [PATCH] iio: dummy_evgen: check iio_evgen in iio_dummy_evgen_free()

2019-05-11 Thread Jonathan Cameron
On Thu, 9 May 2019 10:04:47 +0800 Kefeng Wang wrote: > if iio_dummy_evgen_create() fails, iio_evgen should be NULL, when call > iio_evgen_release() to cleanup, it throws some warning and could cause > double free. > > Reported-by: Hulk Robot > Signed-off-by: Kefeng Wang Hi Kefeng, I'm not see

[PATCH] iio: dummy_evgen: check iio_evgen in iio_dummy_evgen_free()

2019-05-08 Thread Kefeng Wang
if iio_dummy_evgen_create() fails, iio_evgen should be NULL, when call iio_evgen_release() to cleanup, it throws some warning and could cause double free. Reported-by: Hulk Robot Signed-off-by: Kefeng Wang --- drivers/iio/dummy/iio_dummy_evgen.c | 4 1 file changed, 4 insertions(+) diff -