Skip to contentSkip to conversation

Memory leak in NCR_Q720 found by checker

PATCH New Felipe W Damasio 1 participant 1 message Sep 23, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

drivers/scsi/NCR_Q720.c renamed from drivers/scsi/NCR_Q720.c.orig +1 -0
@@ -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;
 	}