mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Bluetooth: fix endianness conversion in L2CAP
Last commit added a wrong endianness conversion. Fixing that. Reported-by: Harvey Harrison <[email protected]> Signed-off-by: Gustavo F. Padovan <[email protected]>
This commit is contained in:
parent
bfaaeb3ed5
commit
4f8b691c9f
1 changed files with 2 additions and 2 deletions
|
|
@ -2452,11 +2452,11 @@ static void l2cap_add_conf_opt(void **ptr, u8 type, u8 len, unsigned long val)
|
|||
break;
|
||||
|
||||
case 2:
|
||||
put_unaligned_le16(cpu_to_le16(val), opt->val);
|
||||
put_unaligned_le16(val, opt->val);
|
||||
break;
|
||||
|
||||
case 4:
|
||||
put_unaligned_le32(cpu_to_le32(val), opt->val);
|
||||
put_unaligned_le32(val, opt->val);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Reference in a new issue