From: Steven Toth Date: Tue, 12 May 2009 01:16:05 +0000 (-0300) Subject: V4L/DVB (12929): SAA7164: OOPS avoidance during interrupt handling X-Git-Tag: v2.6.32-rc1~618^2~143 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d888ea03a0a8798e5a7632d0808cd69f577b75c5;p=karo-tx-linux.git V4L/DVB (12929): SAA7164: OOPS avoidance during interrupt handling Signed-off-by: Steven Toth Signed-off-by: Mauro Carvalho Chehab --- 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) 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.