projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8b3485
)
[Bluetooth] Missing endian swapping for L2CAP socket list
author
Marcel Holtmann
<marcel@holtmann.org>
Mon, 22 Jan 2007 21:00:40 +0000
(22:00 +0100)
committer
Marcel Holtmann
<marcel@holtmann.org>
Mon, 22 Jan 2007 21:00:40 +0000
(22:00 +0100)
The PSM value in the L2CAP socket list must be converted to host
order before printing it.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap.c
b/net/bluetooth/l2cap.c
index 29a8fa4d3728bf7e097fd713007e988b1413b2aa..be5a6e60a3c4d095236aa626e2e74bc377dc54bc 100644
(file)
--- a/
net/bluetooth/l2cap.c
+++ b/
net/bluetooth/l2cap.c
@@
-2150,8
+2150,8
@@
static ssize_t l2cap_sysfs_show(struct class *dev, char *buf)
str += sprintf(str, "%s %s %d %d 0x%4.4x 0x%4.4x %d %d 0x%x\n",
batostr(&bt_sk(sk)->src), batostr(&bt_sk(sk)->dst),
- sk->sk_state,
pi->psm, pi->scid, pi->dcid, pi->imtu
,
- pi->omtu, pi->link_mode);
+ sk->sk_state,
btohs(pi->psm), pi->scid, pi->dcid
,
+ pi->
imtu, pi->
omtu, pi->link_mode);
}
read_unlock_bh(&l2cap_sk_list.lock);