]> git.baikalelectronics.ru Git - kernel.git/commit
media: hdpvr: Fix an error handling path in hdpvr_probe()
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 22 Sep 2017 13:07:06 +0000 (09:07 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 8 Dec 2017 15:06:19 +0000 (10:06 -0500)
commit0e72e404b653113a437de6545d9c7fd409f5e2d5
tree803d52026384fe7520a03347001912dc7fa8463a
parentc840c391ab943dcf33a6a4b835b39faaefc5f4c9
media: hdpvr: Fix an error handling path in hdpvr_probe()

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@gmail.com>
Reported-by: Andrey Konovalov <andreyknvl@google.com>
Tested-by: Andrey Konovalov <andreyknvl@google.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/hdpvr/hdpvr-core.c