]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx: unregister devices in case of failure
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 29 Jan 2016 15:08:19 +0000 (13:08 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 1 Feb 2016 09:26:50 +0000 (07:26 -0200)
commit4b8aeffd1c0b8d79bb66cfda8d6f7c5cbeac48d1
tree96bfae1b7a1d49ec443725b7df6c00ea35be0489
parentab5f5e830fd54796bfea33cb25f387fdc484eb13
[media] em28xx: unregister devices in case of failure

If something bad happens during device registration, unregister
the already registered devices.

Without that, it will have lots of KASAN errors when udev
would try to open the devices.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/usb/em28xx/em28xx-video.c