This is a note to let you know that I've just added the patch titled

    isdn/gigaset: fix CAPI disconnect B3 handling

to the 3.4-stable tree which can be found at:
    
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     isdn-gigaset-fix-capi-disconnect-b3-handling.patch
and it can be found in the queue-3.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <[email protected]> know about it.


>From 62a1cfe052346b96a552b6a9178d412c709711bb Mon Sep 17 00:00:00 2001
From: Tilman Schmidt <[email protected]>
Date: Wed, 25 Apr 2012 13:02:20 +0000
Subject: isdn/gigaset: fix CAPI disconnect B3 handling

From: Tilman Schmidt <[email protected]>

commit 62a1cfe052346b96a552b6a9178d412c709711bb upstream.

If DISCONNECT_B3_IND was synthesized because of a DISCONNECT_REQ
with existing logical connections, the connection state wasn't
updated accordingly. Also the emitted DISCONNECT_B3_IND message
wasn't included in the debug log as requested.
This patch fixes both of these issues.

Signed-off-by: Tilman Schmidt <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

---
 drivers/isdn/gigaset/capi.c |    4 ++++
 1 file changed, 4 insertions(+)

--- a/drivers/isdn/gigaset/capi.c
+++ b/drivers/isdn/gigaset/capi.c
@@ -1887,6 +1887,9 @@ static void do_disconnect_req(struct gig
 
        /* check for active logical connection */
        if (bcs->apconnstate >= APCONN_ACTIVE) {
+               /* clear it */
+               bcs->apconnstate = APCONN_SETUP;
+
                /*
                 * emit DISCONNECT_B3_IND with cause 0x3301
                 * use separate cmsg structure, as the content of iif->acmsg
@@ -1911,6 +1914,7 @@ static void do_disconnect_req(struct gig
                }
                capi_cmsg2message(b3cmsg,
                                  __skb_put(b3skb, 
CAPI_DISCONNECT_B3_IND_BASELEN));
+               dump_cmsg(DEBUG_CMD, __func__, b3cmsg);
                kfree(b3cmsg);
                capi_ctr_handle_message(&iif->ctr, ap->id, b3skb);
        }


Patches currently in stable-queue which might be from [email protected] are

queue-3.4/isdn-gigaset-improve-error-handling-querying-firmware-version.patch
queue-3.4/isdn-gigaset-fix-capi-disconnect-b3-handling.patch
queue-3.4/isdn-gigaset-ratelimit-capi-message-dumps.patch
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to