diff options
author | Steven Toth <stoth@kernellabs.com> | 2009-05-11 21:16:05 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-09-18 23:14:53 -0400 |
commit | d888ea03a0a8798e5a7632d0808cd69f577b75c5 (patch) | |
tree | fe6564a035be474cd0a4dcc3102c38d3bfd53c42 /drivers/media | |
parent | f4a6adf1e54324756917459c52ec7bfdc28d6e7f (diff) |
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/saa7164/saa7164-core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/video/saa7164/saa7164-core.c b/drivers/media/video/saa7164/saa7164-core.c index 968ecd4ad495..15ea90731ba7 100644 --- a/drivers/media/video/saa7164/saa7164-core.c +++ b/drivers/media/video/saa7164/saa7164-core.c | |||
@@ -123,6 +123,12 @@ static irqreturn_t saa7164_irq(int irq, void *dev_id) | |||
123 | u32 intstat[INT_SIZE/4]; | 123 | u32 intstat[INT_SIZE/4]; |
124 | int i, handled = 0, bit; | 124 | int i, handled = 0, bit; |
125 | 125 | ||
126 | if (dev == 0) { | ||
127 | printk(KERN_ERR "%s() No device specified\n", __func__); | ||
128 | handled = 0; | ||
129 | goto out; | ||
130 | } | ||
131 | |||
126 | /* Check that the hardware is accessable. If the status bytes are | 132 | /* Check that the hardware is accessable. If the status bytes are |
127 | * 0xFF then the device is not accessable, the the IRQ belongs | 133 | * 0xFF then the device is not accessable, the the IRQ belongs |
128 | * to another driver. | 134 | * to another driver. |