Skip to content

Commit

Permalink
Bluetooth: fix endianness conversion in L2CAP
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo F. Padovan committed Nov 9, 2010
1 parent bfaaeb3 commit 4f8b691
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/bluetooth/l2cap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4f8b691

Please sign in to comment.