Bluetooth: Fix possible NULL pointer dereference
authorWaldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Fri, 23 Sep 2011 08:01:30 +0000 (10:01 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Thu, 29 Sep 2011 18:23:58 +0000 (15:23 -0300)
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>

No differences found