summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth/ath3k.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-02-08 08:43:17 +0300
committerMarcel Holtmann <marcel@holtmann.org>2010-02-27 14:05:38 +0100
commit10f7891f998e84acfa31ac9c5a0fea052c39ecb8 (patch)
tree86094a38d6e344cacad9b2d3d5640392988fced5 /drivers/bluetooth/ath3k.c
parent8978111e2d148f75bd5e329a14600feadc567381 (diff)
Bluetooth: Add missing kfree() on error path in Atheros driver
Add a couple kfree() calls on an error path. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/ath3k.c')
-rw-r--r--drivers/bluetooth/ath3k.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bluetooth/ath3k.c b/drivers/bluetooth/ath3k.c
index add9485ca5b..128cae4e862 100644
--- a/drivers/bluetooth/ath3k.c
+++ b/drivers/bluetooth/ath3k.c
@@ -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;
}