]> 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)
commita12d18c807ca78a1ff99574649b20ffdc5d4c592
treeefd11e0318af870634cf46514862d0f55238855b
parent9bb58cc2159d041c0c00d9c455a71357f537d127
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