]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Add paranoid check for existing LE and BR/EDR SMP channels
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 15 Jan 2015 16:04:21 +0000 (08:04 -0800)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 15 Jan 2015 19:59:38 +0000 (21:59 +0200)
commitf2d3ea900e1b39803788373d628a7536fff57215
treeefd11e0318af870634cf46514862d0f55238855b
parent6dcdcfa3c44a00bcb01ff1f49adc2f85738511fc
Bluetooth: Add paranoid check for existing LE and BR/EDR SMP channels

When the SMP channels have been already registered, then print out a
clear WARN_ON message that something went wrong. Also unregister the
existing channels in this case before trying to register new ones.

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