V4L/DVB (12929): SAA7164: OOPS avoidance during interrupt handling
authorSteven Toth <stoth@kernellabs.com>
Tue, 12 May 2009 01:16:05 +0000 (22:16 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 19 Sep 2009 03:14:53 +0000 (00:14 -0300)
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/saa7164/saa7164-core.c

index 968ecd4ad495f5a30fbace1746cb3124ced3fb9b..15ea90731ba765d4a1b92b2e55d54ad60e2eb78b 100644 (file)
@@ -123,6 +123,12 @@ static irqreturn_t saa7164_irq(int irq, void *dev_id)
        u32 intstat[INT_SIZE/4];
        int i, handled = 0, bit;
 
+       if (dev == 0) {
+               printk(KERN_ERR "%s() No device specified\n", __func__);
+               handled = 0;
+               goto out;
+       }
+
        /* Check that the hardware is accessable. If the status bytes are
         * 0xFF then the device is not accessable, the the IRQ belongs
         * to another driver.