From: steven miao Date: Sat, 16 Oct 2010 22:29:47 +0000 (-0400) Subject: Bluetooth: fix unaligned access to l2cap conf data X-Git-Tag: v2.6.37-rc2~20^2~23^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bfaaeb3ed5533a2dd38e3aa9ea43efd619690aed;p=pandora-kernel.git Bluetooth: fix unaligned access to l2cap conf data In function l2cap_get_conf_opt() and l2cap_add_conf_opt() the address of opt->val sometimes is not at the edge of 2-bytes/4-bytes, so 2-bytes/4 bytes access will cause data misalignment exeception. Use get_unaligned_le16/32 and put_unaligned_le16/32 function to avoid data misalignment execption. Signed-off-by: steven miao Signed-off-by: Mike Frysinger Acked-by: Marcel Holtmann Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed