Messages in this thread Patch in this message | | | Date | Tue, 23 Sep 2003 15:59:10 -0300 | From | Felipe W Damasio <> | Subject | [PATCH] Memory leak in NCR_Q720 found by checker |
| |
Hi James,
Patch against 2.6-test5 which frees a struct NCR_Q720_private before returning.
Please consider applying.
Cheers,
Felipe --- 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; } | |