mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] isight_firmware : Fix a leak and double kfree()
@ 2008-08-07 17:34 Parag Warudkar
  2008-08-07 19:09 ` Justin Mattock
  0 siblings, 1 reply; 2+ messages in thread
From: Parag Warudkar @ 2008-08-07 17:34 UTC (permalink / raw)
  To: justinmattock; +Cc: Linux Kernel Mailing List, akpm@osdl.org, Linus Torvalds

Signed-off-by: Parag Warudkar <parag.warudkar@gmail.com>

--- linux-2.6/drivers/usb/misc/isight_firmware.c	2008-07-29
23:26:24.000000000 -0400
+++ linux-2.6-wk/drivers/usb/misc/isight_firmware.c	2008-08-07
13:23:01.000000000 -0400
@@ -48,7 +48,8 @@

 	if (request_firmware(&firmware, "isight.fw", &dev->dev) != 0) {
 		printk(KERN_ERR "Unable to load isight firmware\n");
-		return -ENODEV;
+		ret = -ENODEV;
+		goto out;
 	}

 	ptr = firmware->data;
@@ -91,7 +92,6 @@
 			     buf, llen, 300) != llen) {
 				printk(KERN_ERR
 				       "Failed to load isight firmware\n");
-				kfree(buf);
 				ret = -ENODEV;
 				goto out;
 			}

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

end of thread, other threads:[~2008-08-07 19:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-07 17:34 [PATCH] isight_firmware : Fix a leak and double kfree() Parag Warudkar
2008-08-07 19:09 ` Justin Mattock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®