projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68a78b9
)
Bluetooth: Remove a magic number
author
Waldemar Rymarkiewicz
<waldemar.rymarkiewicz@tieto.com>
Wed, 1 Jun 2011 15:28:47 +0000
(17:28 +0200)
committer
mgross
<mark.gross@intel.com>
Wed, 9 Nov 2011 20:10:28 +0000
(12:10 -0800)
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@tieto.com>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/mgmt.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/mgmt.c
b/net/bluetooth/mgmt.c
index
763c9a8
..
4d4dcbb
100644
(file)
--- a/
net/bluetooth/mgmt.c
+++ b/
net/bluetooth/mgmt.c
@@
-1143,7
+1143,7
@@
static int pin_code_reply(struct sock *sk, u16 index, unsigned char *data,
bacpy(&reply.bdaddr, &cp->bdaddr);
reply.pin_len = cp->pin_len;
- memcpy(reply.pin_code, cp->pin_code,
16
);
+ memcpy(reply.pin_code, cp->pin_code,
sizeof(reply.pin_code)
);
err = hci_send_cmd(hdev, HCI_OP_PIN_CODE_REPLY, sizeof(reply), &reply);
if (err < 0)