projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfaaeb3
)
Bluetooth: fix endianness conversion in L2CAP
author
Gustavo F. Padovan
<padovan@profusion.mobi>
Mon, 18 Oct 2010 16:25:53 +0000
(14:25 -0200)
committer
Gustavo F. Padovan
<padovan@profusion.mobi>
Tue, 9 Nov 2010 02:56:09 +0000
(
00:56
-0200)
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>
net/bluetooth/l2cap.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/l2cap.c
b/net/bluetooth/l2cap.c
index b3fb02ab2292f54674f6557a2c26a95782ba8232..cd8f6ea038414ce21794f05f219f37716eea43e0 100644
(file)
--- 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)
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: