summaryrefslogtreecommitdiffstats
path: root/drivers/bluetooth
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
parent8978111e2d148f75bd5e329a14600feadc567381 (diff)
downloadop-kernel-dev-10f7891f998e84acfa31ac9c5a0fea052c39ecb8.zip
op-kernel-dev-10f7891f998e84acfa31ac9c5a0fea052c39ecb8.tar.gz
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')
-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 add9485..128cae4 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;
}
OpenPOWER on IntegriCloud