2003-09-23 19:43:25

by Felipe W Damasio

[permalink] [raw]
Subject: [PATCH] Memory leak in NCR_Q720 found by checker

--- linux-2.6.0-test5/drivers/scsi/NCR_Q720.c.orig 2003-09-23 15:36:47.000000000 -0300
+++ linux-2.6.0-test5/drivers/scsi/NCR_Q720.c 2003-09-23 15:38:28.000000000 -0300
@@ -179,6 +179,7 @@
i = inb(io_base) | (inb(io_base+1)<<8);
if(i != NCR_Q720_MCA_ID) {
printk(KERN_ERR "NCR_Q720, adapter failed to I/O map registers correctly at 0x%x(0x%x)\n", io_base, i);
+ kfree(p);
return -ENODEV;
}


Attachments:
NCR_Q720-leak.patch (405.00 B)