diff options
author | steven miao <[email protected]> | 2010-10-16 18:29:47 -0400 |
---|---|---|
committer | Gustavo F. Padovan <[email protected]> | 2010-11-09 00:56:00 -0200 |
commit | bfaaeb3ed5533a2dd38e3aa9ea43efd619690aed (patch) | |
tree | 8a7a46f99f20d8a637e1867b6309c3e6b88f47da /tools | |
parent | 556ea928f78a390fe16ae584e6433dff304d3014 (diff) |
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 <[email protected]>
Signed-off-by: Mike Frysinger <[email protected]>
Acked-by: Marcel Holtmann <[email protected]>
Signed-off-by: Gustavo F. Padovan <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions