Skip to content

Commit

Permalink
V4L/DVB (12929): SAA7164: OOPS avoidance during interrupt handling
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Toth <stoth@kernellabs.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Sep 19, 2009
1 parent f4a6adf commit d888ea0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/media/video/saa7164/saa7164-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d888ea0

Please sign in to comment.