linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Memory leak in NCR_Q720 found by checker
@ 2003-09-23 18:59 Felipe W Damasio
  0 siblings, 0 replies; only message in thread
From: Felipe W Damasio @ 2003-09-23 18:59 UTC (permalink / raw)
  To: James.Bottomley; +Cc: Linux Kernel Mailing List, linux-scsi

[-- Attachment #1: Type: text/plain, Size: 140 bytes --]

	Hi James,

	Patch against 2.6-test5 which frees a struct NCR_Q720_private before 
returning.

	Please consider applying.

	Cheers,

Felipe

[-- Attachment #2: NCR_Q720-leak.patch --]
[-- Type: text/plain, Size: 405 bytes --]

--- 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;
 	}
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-09-23 19:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 18:59 [PATCH] Memory leak in NCR_Q720 found by checker Felipe W Damasio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).