]> 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)
commitc670957d16ef02af395bc9e64de0a5f6f9492761
tree96bfae1b7a1d49ec443725b7df6c00ea35be0489
parenta6127a0bc735ac7cab67ed59a0b5540dd0d6e322
[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