mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
isight_firmware: fix a leak and double kfree()
Signed-off-by: Parag Warudkar <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
66198f36aa
commit
ff1a4a7b14
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue