lkml.org 
[lkml]   [2003]   [Sep]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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;
}
\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.272 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site