diff options
author | Paul Mackerras <paulus@samba.org> | 2005-11-07 19:14:20 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-11-07 19:14:20 -0500 |
commit | 24bfb00123e82a2e70bd115277d922438813515b (patch) | |
tree | 27328b8a5718e16d64e2d101f4b7ddcad5930aed /drivers/block/cciss.c | |
parent | c6135234550ed89a6fd0e8cb229633967e41d649 (diff) | |
parent | 3f00d3e8fb963968a922d821a9a53b503b687e81 (diff) |
Merge ../linux-2.6
Diffstat (limited to 'drivers/block/cciss.c')
-rw-r--r-- | drivers/block/cciss.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 486b6e1c7dfb..a97c80b57737 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c | |||
@@ -1096,14 +1096,11 @@ static int cciss_ioctl(struct inode *inode, struct file *filep, | |||
1096 | cleanup1: | 1096 | cleanup1: |
1097 | if (buff) { | 1097 | if (buff) { |
1098 | for(i=0; i<sg_used; i++) | 1098 | for(i=0; i<sg_used; i++) |
1099 | if(buff[i] != NULL) | 1099 | kfree(buff[i]); |
1100 | kfree(buff[i]); | ||
1101 | kfree(buff); | 1100 | kfree(buff); |
1102 | } | 1101 | } |
1103 | if (buff_size) | 1102 | kfree(buff_size); |
1104 | kfree(buff_size); | 1103 | kfree(ioc); |
1105 | if (ioc) | ||
1106 | kfree(ioc); | ||
1107 | return(status); | 1104 | return(status); |
1108 | } | 1105 | } |
1109 | default: | 1106 | default: |
@@ -3034,8 +3031,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev, | |||
3034 | return(1); | 3031 | return(1); |
3035 | 3032 | ||
3036 | clean4: | 3033 | clean4: |
3037 | if(hba[i]->cmd_pool_bits) | 3034 | kfree(hba[i]->cmd_pool_bits); |
3038 | kfree(hba[i]->cmd_pool_bits); | ||
3039 | if(hba[i]->cmd_pool) | 3035 | if(hba[i]->cmd_pool) |
3040 | pci_free_consistent(hba[i]->pdev, | 3036 | pci_free_consistent(hba[i]->pdev, |
3041 | NR_CMDS * sizeof(CommandList_struct), | 3037 | NR_CMDS * sizeof(CommandList_struct), |