aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/imon.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/rc/imon.c')
-rw-r--r--drivers/media/rc/imon.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/media/rc/imon.c b/drivers/media/rc/imon.c
index 624fd33d7086..3af7bb6c9f30 100644
--- a/drivers/media/rc/imon.c
+++ b/drivers/media/rc/imon.c
@@ -2324,7 +2324,14 @@ static int imon_probe(struct usb_interface *interface,
2324 } 2324 }
2325 2325
2326 } else { 2326 } else {
2327 /* this is the secondary interface on the device */ 2327 /* this is the secondary interface on the device */
2328
2329 /* fail early if first intf failed to register */
2330 if (!first_if_ctx) {
2331 ret = -ENODEV;
2332 goto fail;
2333 }
2334
2328 ictx = imon_init_intf1(interface, first_if_ctx); 2335 ictx = imon_init_intf1(interface, first_if_ctx);
2329 if (!ictx) { 2336 if (!ictx) {
2330 pr_err("failed to attach to context!\n"); 2337 pr_err("failed to attach to context!\n");