From: Marcel Holtmann Date: Mon, 16 Mar 2015 19:34:55 +0000 (-0700) Subject: Bluetooth: Use smp->remote_pk + 32 instead of &smp->remote_pk[32] X-Git-Tag: v4.1-rc1~128^2~204^2~24 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e091526dfdaa955a7481a696094ac9e5d1bdb0fe;p=karo-tx-linux.git Bluetooth: Use smp->remote_pk + 32 instead of &smp->remote_pk[32] Signed-off-by: Marcel Holtmann Signed-off-by: Johan Hedberg --- diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 1bd281060de2..2b5c13932b0a 100644 --- 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;