[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)
commit56a7f51554b22729cee87042ea697a0d59b13d6b
tree96bfae1b7a1d49ec443725b7df6c00ea35be0489
parentaf7d374a4cf715d7b7f535bcc30d814faf6a5cf6
[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