V4L/DVB (12929): SAA7164: OOPS avoidance during interrupt handling
Signed-off-by: Steven Toth <stoth@kernellabs.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
f4a6adf1e5
commit
d888ea03a0
@@ -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.
|
||||||
|
Reference in New Issue
Block a user