Skip to content

Commit

Permalink
Bluetooth: Add missing kfree() on error path in Atheros driver
Browse files Browse the repository at this point in the history
Add a couple kfree() calls on an error path.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
error27 authored and holtmann committed Feb 27, 2010
1 parent 8978111 commit 10f7891
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/bluetooth/ath3k.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ static int ath3k_probe(struct usb_interface *intf,
usb_set_intfdata(intf, data);
if (ath3k_load_firmware(data, data->fw_data, data->fw_size)) {
usb_set_intfdata(intf, NULL);
kfree(data->fw_data);
kfree(data);
return -EIO;
}

Expand Down

0 comments on commit 10f7891

Please sign in to comment.