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
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue