Re: Re: [PATCH] media: v4l2: Fix memleak in videobuf_read_one

2021-01-08 Thread dinghao . liu
> On 05/01/2021 08:59, Dinghao Liu wrote: > > When videobuf_waiton() fails, we should execute clean > > functions to prevent memleak. It's the same when > > __videobuf_copy_to_user() fails. > > > > Fixes: 7a7d9a89d0307 ("V4L/DVB (6251): Replace video-buf to a more generic > > approach") > > Signe

Re: [PATCH] media: v4l2: Fix memleak in videobuf_read_one

2021-01-07 Thread Hans Verkuil
On 05/01/2021 08:59, Dinghao Liu wrote: > When videobuf_waiton() fails, we should execute clean > functions to prevent memleak. It's the same when > __videobuf_copy_to_user() fails. > > Fixes: 7a7d9a89d0307 ("V4L/DVB (6251): Replace video-buf to a more generic > approach") > Signed-off-by: Dingha