Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Kernel bump from 4.1.3-rt to 4.1.7-rt.
[kvmfornfv.git]
/
kernel
/
net
/
bluetooth
/
smp.c
diff --git
a/kernel/net/bluetooth/smp.c
b/kernel/net/bluetooth/smp.c
index
1ab3dc9
..
7b815bc
100644
(file)
--- a/
kernel/net/bluetooth/smp.c
+++ b/
kernel/net/bluetooth/smp.c
@@
-2295,6
+2295,10
@@
int smp_conn_security(struct hci_conn *hcon, __u8 sec_level)
return 1;
chan = conn->smp;
+ if (!chan) {
+ BT_ERR("SMP security requested but not available");
+ return 1;
+ }
if (!hci_dev_test_flag(hcon->hdev, HCI_LE_ENABLED))
return 1;