lkml.org 
[lkml]   [2005]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 2.6.11] aoe [5/12]: don't try to free null bufpool

    don't try to free null bufpool

    Signed-off-by: Ed L. Cashin <ecashin@coraid.com>

    diff -uprN a/drivers/block/aoe/aoedev.c b/drivers/block/aoe/aoedev.c
    --- a/drivers/block/aoe/aoedev.c 2005-03-10 12:19:11.000000000 -0500
    +++ b/drivers/block/aoe/aoedev.c 2005-03-10 12:19:25.000000000 -0500
    @@ -146,7 +146,8 @@ aoedev_freedev(struct aoedev *d)
    put_disk(d->gd);
    }
    kfree(d->frames);
    - mempool_destroy(d->bufpool);
    + if (d->bufpool)
    + mempool_destroy(d->bufpool);
    kfree(d);
    }


    --
    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-04-06 13:30    [W:2.722 / U:0.220 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site