Commit:     7386397636d49cd5f03da29432467d3e98cbad35
Parent:     a8b3485287731978899ced11f24628c927890e78
Author:     Marcel Holtmann <[EMAIL PROTECTED]>
AuthorDate: Mon Jan 22 22:00:40 2007 +0100
Committer:  Marcel Holtmann <[EMAIL PROTECTED]>
CommitDate: Mon Jan 22 22:00:40 2007 +0100

    [Bluetooth] Missing endian swapping for L2CAP socket list
    The PSM value in the L2CAP socket list must be converted to host
    order before printing it.
    Signed-off-by: Marcel Holtmann <[EMAIL PROTECTED]>
 net/bluetooth/l2cap.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/bluetooth/l2cap.c b/net/bluetooth/l2cap.c
index 29a8fa4..be5a6e6 100644
--- a/net/bluetooth/l2cap.c
+++ b/net/bluetooth/l2cap.c
@@ -2150,8 +2150,8 @@ static ssize_t l2cap_sysfs_show(struct class *dev, char 
                str += sprintf(str, "%s %s %d %d 0x%4.4x 0x%4.4x %d %d 0x%x\n",
-                               sk->sk_state, pi->psm, pi->scid, pi->dcid, 
-                               pi->omtu, pi->link_mode);
+                               sk->sk_state, btohs(pi->psm), pi->scid, 
+                               pi->imtu, pi->omtu, pi->link_mode);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to