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

* Re: [PATCH] isight_firmware : Fix a leak and double kfree()
  2008-08-07 17:34 [PATCH] isight_firmware : Fix a leak and double kfree() Parag Warudkar
@ 2008-08-07 19:09 ` Justin Mattock
  0 siblings, 0 replies; 2+ messages in thread
From: Justin Mattock @ 2008-08-07 19:09 UTC (permalink / raw)
  To: Parag Warudkar; +Cc: Linux Kernel Mailing List, akpm@osdl.org, Linus Torvalds

On Thu, Aug 7, 2008 at 10:34 AM, Parag Warudkar
<parag.warudkar@gmail.com> wrote:
> 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;
>                        }
>

Applied;
I guess with this BUG,
it's more of a waiting game.
("one day it's fine; the next is black")
anyways the module loads, and the firmware
is loading as well. If something like this appears
I'll send a post.

regards;
-- 
Justin P. Mattock

^ 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®