lkml.org 
[lkml]   [2007]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 2.6.21 5/6] iw_cxgb3: Don't reuse skbuffs that are non-linear or cloned.
    Date

    Don't reuse skbuffs that are non-linear or cloned.

    Signed-off-by: Steve Wise <swise@opengridcomputing.com>
    ---

    drivers/infiniband/hw/cxgb3/iwch_cm.c | 3 +--
    1 files changed, 1 insertions(+), 2 deletions(-)

    diff --git a/drivers/infiniband/hw/cxgb3/iwch_cm.c b/drivers/infiniband/hw/cxgb3/iwch_cm.c
    index 8e6f6df..fd2f3ca 100644
    --- a/drivers/infiniband/hw/cxgb3/iwch_cm.c
    +++ b/drivers/infiniband/hw/cxgb3/iwch_cm.c
    @@ -305,8 +305,7 @@ static int status2errno(int status)
    */
    static struct sk_buff *get_skb(struct sk_buff *skb, int len, gfp_t gfp)
    {
    - if (skb) {
    - BUG_ON(skb_cloned(skb));
    + if (skb && !skb_is_nonlinear(skb) && !skb_cloned(skb)) {
    skb_trim(skb, 0);
    skb_get(skb);
    } else {
    -
    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: 2007-03-01 23:55    [W:0.019 / U:58.552 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site