lkml.org 
[lkml]   [2006]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 22/32] IrDA: Incorrect TTP header reservation
    -stable review patch.  If anyone has any objections, please let us know.
    ------------------

    From: Jeet Chaudhuri <jeetlinux@yahoo.co.in>

    We must reserve SAR + MAX_HEADER bytes for IrLMP to fit in.
    This fixes an oops reported (and fixed) by Jeet Chaudhuri, when max_sdu_size
    is greater than 0.

    Signed-off-by: Samuel Ortiz <samuel@sortiz.org>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Chris Wright <chrisw@sous-sol.org>

    ---
    net/irda/irttp.c | 4 ++--
    1 file changed, 2 insertions(+), 2 deletions(-)

    --- linux-2.6.19.orig/net/irda/irttp.c
    +++ linux-2.6.19/net/irda/irttp.c
    @@ -1099,7 +1099,7 @@ int irttp_connect_request(struct tsap_cb
    return -ENOMEM;

    /* Reserve space for MUX_CONTROL and LAP header */
    - skb_reserve(tx_skb, TTP_MAX_HEADER);
    + skb_reserve(tx_skb, TTP_MAX_HEADER + TTP_SAR_HEADER);
    } else {
    tx_skb = userdata;
    /*
    @@ -1348,7 +1348,7 @@ int irttp_connect_response(struct tsap_c
    return -ENOMEM;

    /* Reserve space for MUX_CONTROL and LAP header */
    - skb_reserve(tx_skb, TTP_MAX_HEADER);
    + skb_reserve(tx_skb, TTP_MAX_HEADER + TTP_SAR_HEADER);
    } else {
    tx_skb = userdata;
    /*
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-12-09 01:07    [W:0.030 / U:120.996 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site