lkml.org 
[lkml]   [2005]   [Sep]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 2.6.14-rc2] aoe [1/2]: explicitly set minimum packet length to ETH_ZLEN
    From
    Date
    Signed-off-by: "Ed L. Cashin" <ecashin@coraid.com>

    Explicitly set the minimum packet length to ETH_ZLEN.

    Index: 2.6.14-rc2-aoe/drivers/block/aoe/aoecmd.c
    ===================================================================
    --- 2.6.14-rc2-aoe.orig/drivers/block/aoe/aoecmd.c 2005-09-26 12:20:34.000000000 -0400
    +++ 2.6.14-rc2-aoe/drivers/block/aoe/aoecmd.c 2005-09-26 12:27:49.000000000 -0400
    @@ -20,6 +20,9 @@
    {
    struct sk_buff *skb;

    + if (len < ETH_ZLEN)
    + len = ETH_ZLEN;
    +
    skb = alloc_skb(len, GFP_ATOMIC);
    if (skb) {
    skb->nh.raw = skb->mac.raw = skb->data;

    --
    Ed L. Cashin <ecashin@coraid.com>

    -
    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: 2005-09-26 18:48    [W:2.226 / U:0.316 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site