]> git.baikalelectronics.ru Git - kernel.git/commit
[media] redrat3: fix error paths in probe
authorSean Young <sean@mess.org>
Mon, 31 Oct 2016 17:52:22 +0000 (15:52 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Mon, 21 Nov 2016 14:26:54 +0000 (12:26 -0200)
commit2fd3c706383d275737847ca9053acadb0b167ad0
treeaa1a4d3aa8880d0f66791d9aaada519160de59a9
parent86ca26e281aaa82625cef053b4bc91885740a30f
[media] redrat3: fix error paths in probe

If redrat3_delete() is called, ensure ep_in and udev members are set
up so we don't dereference null in the error path. Also ensure that
rc dev device exists before we enable the receiver and that the
led urb exists before we create the led device.

Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/redrat3.c