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)
commit2b8df323953bfbeb8289c56f43b7fcfa4c70e90a
treeefd11e0318af870634cf46514862d0f55238855b
parent327a71910cbecd873054c3fb764f1fc59ede5297
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