projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66198f3
)
isight_firmware: fix a leak and double kfree()
author
Parag Warudkar
<
[email protected]
>
Tue, 12 Aug 2008 22:08:46 +0000
(15:08 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 12 Aug 2008 23:07:28 +0000
(16:07 -0700)
Signed-off-by: Parag Warudkar <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/usb/misc/isight_firmware.c
patch
|
blob
|
history
diff --git
a/drivers/usb/misc/isight_firmware.c
b/drivers/usb/misc/isight_firmware.c
index d94aa7387608fde3db0e3690eea050980bc0b5df..b897f6554ecdd0e282fd4d5b0dfed072f041f3b7 100644
(file)
--- a/
drivers/usb/misc/isight_firmware.c
+++ b/
drivers/usb/misc/isight_firmware.c
@@
-48,7
+48,8
@@
static int isight_firmware_load(struct usb_interface *intf,
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
@@
static int isight_firmware_load(struct usb_interface *intf,
buf, llen, 300) != llen) {
printk(KERN_ERR
"Failed to load isight firmware\n");
- kfree(buf);
ret = -ENODEV;
goto out;
}