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)
commitc0f71bbb810237a38734607ca4599632f7f5d47f
tree803d52026384fe7520a03347001912dc7fa8463a
parentcee32edb2302b6199dd763d44573f6b4f220f0e8
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