]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix potential NULL dereference in SMP channel setup
authorMarcel Holtmann <marcel@holtmann.org>
Tue, 17 Mar 2015 18:38:24 +0000 (11:38 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 18 Mar 2015 06:30:03 +0000 (08:30 +0200)
commitc560efd5915f82d83f52421666a5b7ab7df2397a
treedbc670d6296219f8fa8882b287ca0967944f2fc5
parent1b27594580fda6f9861ba17bcc8485544421d65f
Bluetooth: Fix potential NULL dereference in SMP channel setup

When the allocation of the L2CAP channel for the BR/EDR security manager
fails, then the smp variable might be NULL. In that case do not try to
free the non-existing crypto contexts

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