[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)
commit8a21ec9bb3ecea54ebbd8576460ec8ba2096a29e
treeaa1a4d3aa8880d0f66791d9aaada519160de59a9
parentd6aca6ea281d88ce1816fd6f5a57889c6ea9392b
[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