aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-02-08 00:43:17 -0500
committerMarcel Holtmann <marcel@holtmann.org>2010-02-27 08:05:38 -0500
commit10f7891f998e84acfa31ac9c5a0fea052c39ecb8 (patch)
tree86094a38d6e344cacad9b2d3d5640392988fced5 /drivers
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')
-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 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