Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 328881
b: refs/heads/master
c: 7731e6b
h: refs/heads/master
i:
  328879: e9b085b
v: v3
  • Loading branch information
Fengguang Wu authored and James Bottomley committed Sep 24, 2012
1 parent c75f5a5 commit fd18485
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9728686f17304bd682038664d9a1ad28b7409af8
refs/heads/master: 7731e6bb312ec8bb7892c465401dbc7119aea785
7 changes: 2 additions & 5 deletions trunk/drivers/scsi/megaraid/megaraid_sas_fusion.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,18 +462,15 @@ megasas_alloc_cmds_fusion(struct megasas_instance *instance)
* Allocate the dynamic array first and then allocate individual
* commands.
*/
fusion->cmd_list = kmalloc(sizeof(struct megasas_cmd_fusion *)
*max_cmd, GFP_KERNEL);
fusion->cmd_list = kzalloc(sizeof(struct megasas_cmd_fusion *)
* max_cmd, GFP_KERNEL);

if (!fusion->cmd_list) {
printk(KERN_DEBUG "megasas: out of memory. Could not alloc "
"memory for cmd_list_fusion\n");
goto fail_cmd_list;
}

memset(fusion->cmd_list, 0, sizeof(struct megasas_cmd_fusion *)
*max_cmd);

max_cmd = instance->max_fw_cmds;
for (i = 0; i < max_cmd; i++) {
fusion->cmd_list[i] = kmalloc(sizeof(struct megasas_cmd_fusion),
Expand Down

0 comments on commit fd18485

Please sign in to comment.