lkml.org 
[lkml]   [2011]   [May]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 06/16] cciss: fix reply pool and block fetch table memory leaks
    From
    Date
    From: Stephen M. Cameron <scameron@beardog.cce.hp.com>


    ---
    drivers/block/cciss.c | 4 ++++
    1 files changed, 4 insertions(+), 0 deletions(-)

    diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
    index 63fe05a..d604489 100644
    --- a/drivers/block/cciss.c
    +++ b/drivers/block/cciss.c
    @@ -4988,6 +4988,10 @@ static void __devexit cciss_remove_one(struct pci_dev *pdev)
    kfree(h->scatter_list[j]);
    kfree(h->scatter_list);
    cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds);
    + kfree(h->blockFetchTable);
    + if (h->reply_pool)
    + pci_free_consistent(h->pdev, h->max_commands * sizeof(__u64),
    + h->reply_pool, h->reply_pool_dhandle);
    /*
    * Deliberately omit pci_disable_device(): it does something nasty to
    * Smart Array controllers that pci_enable_device does not undo


    \
     
     \ /
      Last update: 2011-05-03 21:55    [W:0.022 / U:34.444 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site