summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/saa7164
diff options
context:
space:
mode:
authorSteven Toth <stoth@kernellabs.com>2009-05-11 21:16:05 -0400
committerSteven Toth <stoth@kernellabs.com>2009-05-11 21:16:05 -0400
commit147479b84ed012a89cff5a4e81dc6b96cafd16b8 (patch)
treeb18d94db1e98437f443edef8bca9e853b641e892 /linux/drivers/media/video/saa7164
parent36ba847b7d8b77d4c03bdc46fcbb240f5d435079 (diff)
downloadmediapointer-dvb-s2-147479b84ed012a89cff5a4e81dc6b96cafd16b8.tar.gz
mediapointer-dvb-s2-147479b84ed012a89cff5a4e81dc6b96cafd16b8.tar.bz2
SAA7164: OOPS avoidance during interrupt handling
From: Steven Toth <stoth@kernellabs.com> SAA7164: OOPS avoidance during interrupt handling Priority: normal Signed-off-by: Steven Toth <stoth@kernellabs.com>
Diffstat (limited to 'linux/drivers/media/video/saa7164')
-rw-r--r--linux/drivers/media/video/saa7164/saa7164-core.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/linux/drivers/media/video/saa7164/saa7164-core.c b/linux/drivers/media/video/saa7164/saa7164-core.c
index 716b82780..bf347fb0e 100644
--- a/linux/drivers/media/video/saa7164/saa7164-core.c
+++ b/linux/drivers/media/video/saa7164/saa7164-core.c
@@ -161,6 +161,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.