diff options
-rw-r--r-- | drivers/bluetooth/ath3k.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c index add9485ca5b6..128cae4e8629 100644 --- a/drivers/bluetooth/ath3k.c +++ b/drivers/bluetooth/ath3k.c | |||
@@ -143,6 +143,8 @@ static int ath3k_probe(struct usb_interface *intf, | |||
143 | usb_set_intfdata(intf, data); | 143 | usb_set_intfdata(intf, data); |
144 | if (ath3k_load_firmware(data, data->fw_data, data->fw_size)) { | 144 | if (ath3k_load_firmware(data, data->fw_data, data->fw_size)) { |
145 | usb_set_intfdata(intf, NULL); | 145 | usb_set_intfdata(intf, NULL); |
146 | kfree(data->fw_data); | ||
147 | kfree(data); | ||
146 | return -EIO; | 148 | return -EIO; |
147 | } | 149 | } |
148 | 150 | ||