Commit 4f8b691c9fb02e72359e71592098c1de3b8ec712
1 parent
bfaaeb3ed5
Exists in
master
and in
39 other branches
Bluetooth: fix endianness conversion in L2CAP
Last commit added a wrong endianness conversion. Fixing that. Reported-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
net/bluetooth/l2cap.c
... | ... | @@ -2452,11 +2452,11 @@ |
2452 | 2452 | break; |
2453 | 2453 | |
2454 | 2454 | case 2: |
2455 | - put_unaligned_le16(cpu_to_le16(val), opt->val); | |
2455 | + put_unaligned_le16(val, opt->val); | |
2456 | 2456 | break; |
2457 | 2457 | |
2458 | 2458 | case 4: |
2459 | - put_unaligned_le32(cpu_to_le32(val), opt->val); | |
2459 | + put_unaligned_le32(val, opt->val); | |
2460 | 2460 | break; |
2461 | 2461 | |
2462 | 2462 | default: |