git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Bluetooth] Fix double frees on error paths of btusb and bpa10x drivers
[pandora-kernel.git]
/
drivers
/
bluetooth
/
bpa10x.c
diff --git
a/drivers/bluetooth/bpa10x.c
b/drivers/bluetooth/bpa10x.c
index
1e55a65
..
32f3a8e
100644
(file)
--- a/
drivers/bluetooth/bpa10x.c
+++ b/
drivers/bluetooth/bpa10x.c
@@
-256,7
+256,6
@@
static inline int bpa10x_submit_intr_urb(struct hci_dev *hdev)
BT_ERR("%s urb %p submission failed (%d)",
hdev->name, urb, -err);
usb_unanchor_urb(urb);
- kfree(buf);
}
usb_free_urb(urb);
@@
-298,7
+297,6
@@
static inline int bpa10x_submit_bulk_urb(struct hci_dev *hdev)
BT_ERR("%s urb %p submission failed (%d)",
hdev->name, urb, -err);
usb_unanchor_urb(urb);
- kfree(buf);
}
usb_free_urb(urb);