Bluetooth: Fix memory leaking when hdev->send returns an error
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 6 Jul 2014 13:36:15 +0000 (15:36 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Sun, 6 Jul 2014 14:10:47 +0000 (17:10 +0300)
commitcdc52faac5f341beaff036828b9459f7c8dd7296
treee237795b4ecd5a27d3c552bb5ddd1ffbe0e68163
parentd92f2df0565ea04101d6ac04bdc10feeb1d93c94
Bluetooth: Fix memory leaking when hdev->send returns an error

The drivers are allowed to just return an error from hdev->send callback
and in that case the driver does not own the SKB. Which means that the
caller has to free the SKB.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/hci_core.c