Skip to content

Commit

Permalink
[SCSI] cciss: kfree(NULL) is legal
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Andrew Morton authored and Unknown committed Feb 28, 2006
1 parent 03fbcbc commit 1acc0b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/block/cciss.c
Original file line number Diff line number Diff line change
Expand Up @@ -3251,8 +3251,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,

clean4:
#ifdef CONFIG_CISS_SCSI_TAPE
if(hba[i]->scsi_rejects.complete)
kfree(hba[i]->scsi_rejects.complete);
kfree(hba[i]->scsi_rejects.complete);
#endif
kfree(hba[i]->cmd_pool_bits);
if(hba[i]->cmd_pool)
Expand Down

0 comments on commit 1acc0b0

Please sign in to comment.