mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-09 22:50:41 +00:00
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>
This commit is contained in:
parent
8978111e2d
commit
10f7891f99
@ -143,6 +143,8 @@ static int ath3k_probe(struct usb_interface *intf,
|
|||||||
usb_set_intfdata(intf, data);
|
usb_set_intfdata(intf, data);
|
||||||
if (ath3k_load_firmware(data, data->fw_data, data->fw_size)) {
|
if (ath3k_load_firmware(data, data->fw_data, data->fw_size)) {
|
||||||
usb_set_intfdata(intf, NULL);
|
usb_set_intfdata(intf, NULL);
|
||||||
|
kfree(data->fw_data);
|
||||||
|
kfree(data);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user