]> 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)
commit191c592cf282e060d491db80e58efc4b95df0c39
treeaa1a4d3aa8880d0f66791d9aaada519160de59a9
parent61e628848fdba934cd4db3b093924b9a49de6f87
[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