From: Anderson Briglia Date: Mon, 19 Sep 2011 18:41:09 +0000 (-0400) Subject: Bluetooth: Fix wrong memcpy size on LE start encryption X-Git-Tag: v3.2-rc1~129^2~183^2~39^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51beabdf624df14d0805b001d3f939629b70d9db;p=pandora-kernel.git 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 Signed-off-by: Anderson Lizardo Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed