aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/cciss.c
diff options
context:
space:
mode:
authorStephen M. Cameron <scameron@beardog.cce.hp.com>2011-05-03 15:53:21 -0400
committerJens Axboe <jaxboe@fusionio.com>2011-05-06 10:23:50 -0400
commite363e0143615a67f19d56e6b223b55df3bd9f580 (patch)
tree413183481275e824598fb7f18ab69a4fb7ee56eb /drivers/block/cciss.c
parent2b48085f972a761b38cf60c626031a7fdd9e6d55 (diff)
cciss: fix reply pool and block fetch table memory leaks
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r--drivers/block/cciss.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 63fe05af2c5d..d60448941d53 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)
4988 kfree(h->scatter_list[j]); 4988 kfree(h->scatter_list[j]);
4989 kfree(h->scatter_list); 4989 kfree(h->scatter_list);
4990 cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds); 4990 cciss_free_sg_chain_blocks(h->cmd_sg_list, h->nr_cmds);
4991 kfree(h->blockFetchTable);
4992 if (h->reply_pool)
4993 pci_free_consistent(h->pdev, h->max_commands * sizeof(__u64),
4994 h->reply_pool, h->reply_pool_dhandle);
4991 /* 4995 /*
4992 * Deliberately omit pci_disable_device(): it does something nasty to 4996 * Deliberately omit pci_disable_device(): it does something nasty to
4993 * Smart Array controllers that pci_enable_device does not undo 4997 * Smart Array controllers that pci_enable_device does not undo