aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVineeta Srivastava <vsrivastava@google.com>2013-12-18 14:37:35 -0800
committerLorDClockaN <davor@losinj.com>2014-11-17 16:36:23 +0100
commit1b44659590f68eab56438a46c35b5179e57530b2 (patch)
tree982a1439b06747ead2e9436186f5f6a16501f617
parentd2df34fbc8b122f289dae926b7c03993b148bc50 (diff)
Fix sizeof-pointer-memaccess warning with gcc 4.8lp5.0
This patch fixes wrong memcpy size when copying ltk value to HCI_OP_LE_LTK_REPLY command. Change-Id: I44e5e3da15369d4b424581720ccd3bac820ef2e0
-rw-r--r--net/bluetooth/hci_conn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c
index cdb2d291..aff9d48a 100644
--- a/net/bluetooth/hci_conn.c
+++ b/net/bluetooth/hci_conn.c
@@ -234,7 +234,7 @@ void hci_le_ltk_reply(struct hci_conn *conn, u8 ltk[16])
memset(&cp, 0, sizeof(cp));
cp.handle = cpu_to_le16(conn->handle);
- memcpy(cp.ltk, ltk, sizeof(ltk));
+ memcpy(cp.ltk, ltk, sizeof(cp.ltk));
hci_send_cmd(hdev, HCI_OP_LE_LTK_REPLY, sizeof(cp), &cp);
}