aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorGustavo F. Padovan <padovan@profusion.mobi>2010-10-18 12:25:53 -0400
committerGustavo F. Padovan <padovan@profusion.mobi>2010-11-08 21:56:09 -0500
commit4f8b691c9fb02e72359e71592098c1de3b8ec712 (patch)
treed74bf4427c1f92b79ba84e8c8159f02b3933430a /net/bluetooth
parentbfaaeb3ed5533a2dd38e3aa9ea43efd619690aed (diff)
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>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index b3fb02ab2292..cd8f6ea03841 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -2452,11 +2452,11 @@ static void l2cap_add_conf_opt(void **ptr, u8 type, u8 len, unsigned long val)
2452 break; 2452 break;
2453 2453
2454 case 2: 2454 case 2:
2455 put_unaligned_le16(cpu_to_le16(val), opt->val); 2455 put_unaligned_le16(val, opt->val);
2456 break; 2456 break;
2457 2457
2458 case 4: 2458 case 4:
2459 put_unaligned_le32(cpu_to_le32(val), opt->val); 2459 put_unaligned_le32(val, opt->val);
2460 break; 2460 break;
2461 2461
2462 default: 2462 default: