linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] memory leak in mtdblock.c found by checker
@ 2003-09-23 19:14 Felipe W Damasio
  2003-10-04 17:16 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Felipe W Damasio @ 2003-09-23 19:14 UTC (permalink / raw)
  To: dwmw2; +Cc: Linux Kernel Mailing List

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

	Hi David,

	Patch against 2.6-test5, which checks the right variable if kmalloc 
failed.

	Please apply,

Felipe

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

--- linux-2.6.0-test5/drivers/mtd/mtdblock.c.orig	2003-09-23 16:09:37.000000000 -0300
+++ linux-2.6.0-test5/drivers/mtd/mtdblock.c	2003-09-23 16:10:50.000000000 -0300
@@ -275,7 +275,7 @@
 	
 	/* OK, it's not open. Create cache info for it */
 	mtdblk = kmalloc(sizeof(struct mtdblk_dev), GFP_KERNEL);
-	if (!mtdblks)
+	if (!mtdblk)
 		return -ENOMEM;
 
 	memset(mtdblk, 0, sizeof(*mtdblk));

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] memory leak in mtdblock.c found by checker
  2003-09-23 19:14 [PATCH] memory leak in mtdblock.c found by checker Felipe W Damasio
@ 2003-10-04 17:16 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2003-10-04 17:16 UTC (permalink / raw)
  To: Felipe W Damasio; +Cc: Linux Kernel Mailing List

On Tue, 2003-09-23 at 16:14 -0300, Felipe W Damasio wrote:
> 	Hi David,
> 
> 	Patch against 2.6-test5, which checks the right variable if kmalloc 
> failed.

Applied to CVS. Going to Linus some time soon if he hasn't already got
it. Thanks.

-- 
dwmw2



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-10-04 17:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-23 19:14 [PATCH] memory leak in mtdblock.c found by checker Felipe W Damasio
2003-10-04 17:16 ` David Woodhouse

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).