]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 22 Feb 2018 14:15:44 +0000 (08:15 -0600)
commit6ea26f306fdd94f582339e2f94e83b958e23c799
tree1be76cc4e7abcafa14cff56bf625f20509cd5b44
parent7f9198638f07678aeba97f7175214ee02ddcf359
media: hdpvr: Fix an error handling path in hdpvr_probe()

BugLink: http://bugs.launchpad.net/bugs/1751064
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@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>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/media/usb/hdpvr/hdpvr-core.c