]> git.openfabrics.org - ~emulex/infiniband.git/commit
Bluetooth: Fix hci_remove_ltk failure when no match is found
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 18 Feb 2014 15:14:33 +0000 (17:14 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 18 Feb 2014 16:58:20 +0000 (08:58 -0800)
commitc51ffa0b2fb23ec19b2d01597506d8c953ed1218
tree5d51dac30f2e556a5a944f07e1eb94d4e05e414a
parent35f7498a87794ca531335f7c782e5b9495fec6d6
Bluetooth: Fix hci_remove_ltk failure when no match is found

There is code (in mgmt.c) that depends on the hci_remove_ltk function to
fail if no match is found. This patch adds tracking of removed LTKs
(there can be up to two: one for master and another for slave) in the
hci_remove_ltk function and returns -ENOENT of no matches were found.

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