diff options
author | Waldemar Rymarkiewicz | 2011-09-23 10:01:30 +0200 |
---|---|---|
committer | Gustavo F. Padovan | 2011-09-29 20:23:58 +0200 |
commit | b6f98044a6cbeba8234a3d433d715e9ef36880c4 (patch) | |
tree | 0e518c0723f132eb05c291e53b631884bdf1596d /drivers/bluetooth/btusb.c | |
parent | Bluetooth: Mark not declared l2cap_core functions as static (diff) | |
download | kernel-qcow2-linux-b6f98044a6cbeba8234a3d433d715e9ef36880c4.tar.gz kernel-qcow2-linux-b6f98044a6cbeba8234a3d433d715e9ef36880c4.tar.xz kernel-qcow2-linux-b6f98044a6cbeba8234a3d433d715e9ef36880c4.zip |
Bluetooth: Fix possible NULL pointer dereference
Checking conn->pending_sec_level if there is no connection leads to potential
null pointer dereference. Don't process pin_code_request_event at all if no
connection exists.
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'drivers/bluetooth/btusb.c')
0 files changed, 0 insertions, 0 deletions