Skip to content
Snippets Groups Projects
Commit ff1a4a7b authored by Parag Warudkar's avatar Parag Warudkar Committed by Linus Torvalds
Browse files

isight_firmware: fix a leak and double kfree()

parent 66198f36
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment