bluetooth: ath3k: add kfree() on error path
Subsystems (2)
PATCH 1/1 bluetooth: ath3k: add kfree() on error path
Add a couple kfree() calls on an error path.
Signed-off-by Dan Carpenter <[email protected]>
---
I only compile tested this one and it's obvoiusly low priority. Could it go into linux-next?
drivers/bluetooth/ath3k.c +2 -0
@@ -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 ; }
Marcel Holtmann
maintainerHi Dan,
Quoted 6 lines
Add a couple
kfree()calls on an error path.Signed-off-by Dan Carpenter <[email protected]>---
I only compile tested this one and it's obvoiusly low priority. Could it go into linux-next?
patch has been applied. Thanks.
Regards
Marcel