]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Fix wrong memcpy size on LE start encryption
authorAnderson Briglia <anderson.briglia@openbossa.org>
Mon, 19 Sep 2011 18:41:09 +0000 (14:41 -0400)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 21 Sep 2011 15:59:16 +0000 (12:59 -0300)
commit6e4e65c69df761cf1b9f171e3e993f851f882d6b
treea1875000da70a67f9440c2c6716e1c3be455c4b6
parent86126b98677f18b2a5568b4830b174c79c6a2796
Bluetooth: Fix wrong memcpy size on LE start encryption

This patch fixes wrong memcpy size when copying rand value to
HCI_OP_LE_START_ENC command.
The compiler pretends that the array parameter was declared as a pointer
and sizeof reports the size of the pointer. [1]

[1] http://www.c-faq.com/aryptr/aryparmsize.html

Signed-off-by: Anderson Briglia <anderson.briglia@openbossa.org>
Signed-off-by: Anderson Lizardo <anderson.lizardo@openbossa.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
net/bluetooth/hci_conn.c