diff options
author | Dan Carpenter <error27@gmail.com> | 2010-02-08 06:43:17 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-02-27 14:05:38 +0100 |
commit | 10f7891f998e84acfa31ac9c5a0fea052c39ecb8 (patch) | |
tree | 86094a38d6e344cacad9b2d3d5640392988fced5 /drivers/bluetooth | |
parent | Bluetooth: Make USB device id constant (diff) | |
download | linux-10f7891f998e84acfa31ac9c5a0fea052c39ecb8.tar.xz linux-10f7891f998e84acfa31ac9c5a0fea052c39ecb8.zip |
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.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, 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; } |