diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-07-20 20:31:25 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-16 20:52:11 -0700 |
commit | 4e200fcacc37eebe93acfc3d751b6b7b79bf85a1 (patch) | |
tree | d7faca42e10cb8ea7685475726d0a4f088b9e62f /drivers | |
parent | ccd98d0cc1bd2c31a065258256727217e112db96 (diff) |
Bluetooth: Fix NULL pointer dereference in smp_conn_security
commit 25ba265390c09b0a2b2f3fd9ba82e37248b7a371 upstream.
The l2cap_conn->smp pointer may be NULL for various valid reasons where SMP has
failed to initialize properly. One such scenario is when crypto support is
missing, another when the adapter has been powered on through a legacy method.
The smp_conn_security() function should have the appropriate check for this
situation to avoid NULL pointer dereferences.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions