projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb06d36
)
Bluetooth: Use smp->remote_pk + 32 instead of &smp->remote_pk[32]
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 16 Mar 2015 19:34:55 +0000
(12:34 -0700)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Mon, 16 Mar 2015 19:36:19 +0000
(21:36 +0200)
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/smp.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/smp.c
b/net/bluetooth/smp.c
index 1bd281060de25578b4e7db9b7db6af9cc3715606..2b5c13932b0a6237ec69554662d9463c42b5aecc 100644
(file)
--- a/
net/bluetooth/smp.c
+++ b/
net/bluetooth/smp.c
@@
-2543,7
+2543,7
@@
static int smp_cmd_public_key(struct l2cap_conn *conn, struct sk_buff *skb)
}
SMP_DBG("Remote Public Key X: %32phN", smp->remote_pk);
- SMP_DBG("Remote Public Key Y: %32phN",
&smp->remote_pk[32]
);
+ SMP_DBG("Remote Public Key Y: %32phN",
smp->remote_pk + 32
);
if (!ecdh_shared_secret(smp->remote_pk, smp->local_sk, smp->dhkey))
return SMP_UNSPECIFIED;