Bluetooth: Fix invalid memory access when there's no SMP channel
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>
Wed, 1 Feb 2012 21:27:56 +0000 (18:27 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:31 +0000 (17:01 +0200)
commitf1c09c07cd1a6c1676c4df6450d2b28875e184c1
tree5056e05979ddddaa25279379bb7b7d2d91978c0a
parent66f01296962dfebf032c18ffe61c53a199b4a7bd
Bluetooth: Fix invalid memory access when there's no SMP channel

We only should try to free the SMP channel that was created if there
is a pending SMP session.

Signed-off-by: Vinicius Costa Gomes <vinicius.gomes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/smp.c