On Mon, Mar 15, 2021 at 09:39:43AM +0100, Krzysztof Kozlowski wrote: > From: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx> > > commit c0f71bbb810237a38734607ca4599632f7f5d47f upstream. > > Here, hdpvr_register_videodev() is responsible for setup and > register a video device. Also defining and initializing a worker. > hdpvr_register_videodev() is calling by hdpvr_probe at last. > So no need to flush any work here. > Unregister v4l2, free buffers and memory. If hdpvr_probe() will fail. > > Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx> > Reported-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx> > Tested-by: Andrey Konovalov <andreyknvl@xxxxxxxxxx> > Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx> > Signed-off-by: Mauro Carvalho Chehab <mchehab@xxxxxxxxxxxxxxxx> > [krzk: backport to v4.4, still using single thread workqueue which > is drained/destroyed now in proper step so it cannot be NULL] > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxx> > > --- > > Backport needed for v4.4. v4.9 has it already. Now queued up, thanks. greg k-h