Commit d888ea03 authored by Steven Toth's avatar Steven Toth Committed by Mauro Carvalho Chehab

V4L/DVB (12929): SAA7164: OOPS avoidance during interrupt handling

Signed-off-by: default avatarSteven Toth <stoth@kernellabs.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f4a6adf1
...@@ -123,6 +123,12 @@ static irqreturn_t saa7164_irq(int irq, void *dev_id) ...@@ -123,6 +123,12 @@ static irqreturn_t saa7164_irq(int irq, void *dev_id)
u32 intstat[INT_SIZE/4]; u32 intstat[INT_SIZE/4];
int i, handled = 0, bit; 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 /* Check that the hardware is accessable. If the status bytes are
* 0xFF then the device is not accessable, the the IRQ belongs * 0xFF then the device is not accessable, the the IRQ belongs
* to another driver. * to another driver.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment