aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-01-04 21:30:03 -0500
committer <jejb@mulgrave.il.steeleye.com>2006-02-27 23:55:06 -0500
commit1acc0b0ba409dcf4909890fb33e0829f7fd400be (patch)
treef4590439d51664e68745a8f427fae91b75b520ee /drivers/block
parent03fbcbcd57e9d1bc5a4fe6a81c1845e7365ddabc (diff)
[SCSI] cciss: kfree(NULL) is legal
Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/block')
-rw-r--r--drivers/block/cciss.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 0d65394707db..b9c786ee6fad 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -3251,8 +3251,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
3251 3251
3252clean4: 3252clean4:
3253#ifdef CONFIG_CISS_SCSI_TAPE 3253#ifdef CONFIG_CISS_SCSI_TAPE
3254 if(hba[i]->scsi_rejects.complete) 3254 kfree(hba[i]->scsi_rejects.complete);
3255 kfree(hba[i]->scsi_rejects.complete);
3256#endif 3255#endif
3257 kfree(hba[i]->cmd_pool_bits); 3256 kfree(hba[i]->cmd_pool_bits);
3258 if(hba[i]->cmd_pool) 3257 if(hba[i]->cmd_pool)