Hi,
in sound/oss/msnd_pinnacle.c, request_region() is called without checking the return
value. Here is a simple patch to fix it.
Patch against 2.6.16-rc6-git8.
Please CC me on replies.
Regards.
PS: trying with a MUA this time, since the webmail I used for previous patch
( [patch 1/1] OSS ali5455 missing return check for request_region() ) wrapped lines :(
Signed-off-by: Laurent Wandrebeck <[email protected]>
--- linux-2.6.16-rc6/sound/oss/msnd_pinnacle.c.ori 2006-03-17 10:45:46.000000000 +0100
+++ linux-2.6.16-rc6/sound/oss/msnd_pinnacle.c 2006-03-17 11:05:42.000000000 +0100
@@ -1397,7 +1397,13 @@ static int __init attach_multisound(void
printk(KERN_ERR LOGNAME ": Couldn't grab IRQ %d\n", dev.irq);
return err;
}
- request_region(dev.io, dev.numio, dev.name);
+
+ if (!request_region(dev.io, dev.numio, dev.name)) {
+ printk(KERN_ERR LOGNAME ": Unable to reserve region %d\n",
+ dev->io);
+ free_irq(dev.irq,&dev);
+ return -EBUSY;
+ }
if ((err = dsp_full_reset()) < 0) {
release_region(dev.io, dev.numio);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]