diff options
Diffstat (limited to 'drivers/scsi/aacraid/commsup.c')
-rw-r--r-- | drivers/scsi/aacraid/commsup.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/aacraid/commsup.c b/drivers/scsi/aacraid/commsup.c index 5824a757a753..9aca57eda943 100644 --- a/drivers/scsi/aacraid/commsup.c +++ b/drivers/scsi/aacraid/commsup.c | |||
@@ -1223,13 +1223,11 @@ int aac_check_health(struct aac_dev * aac) | |||
1223 | * Warning: no sleep allowed while | 1223 | * Warning: no sleep allowed while |
1224 | * holding spinlock | 1224 | * holding spinlock |
1225 | */ | 1225 | */ |
1226 | hw_fib = kmalloc(sizeof(struct hw_fib), GFP_ATOMIC); | 1226 | hw_fib = kzalloc(sizeof(struct hw_fib), GFP_ATOMIC); |
1227 | fib = kmalloc(sizeof(struct fib), GFP_ATOMIC); | 1227 | fib = kzalloc(sizeof(struct fib), GFP_ATOMIC); |
1228 | if (fib && hw_fib) { | 1228 | if (fib && hw_fib) { |
1229 | struct aac_aifcmd * aif; | 1229 | struct aac_aifcmd * aif; |
1230 | 1230 | ||
1231 | memset(hw_fib, 0, sizeof(struct hw_fib)); | ||
1232 | memset(fib, 0, sizeof(struct fib)); | ||
1233 | fib->hw_fib_va = hw_fib; | 1231 | fib->hw_fib_va = hw_fib; |
1234 | fib->dev = aac; | 1232 | fib->dev = aac; |
1235 | aac_fib_init(fib); | 1233 | aac_fib_init(fib); |