Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63673
b: refs/heads/master
c: 53772a2
h: refs/heads/master
i:
  63671: 8fa4897
v: v3
  • Loading branch information
Seokmann Ju authored and James Bottomley committed Jul 31, 2007
1 parent 29308cc commit 3456881
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 142009a3df39ecd4e96601d8bdabbe0c5f6e2f4e
refs/heads/master: 53772a2cb40748ea0b26db8101d632ddb3875b51
14 changes: 14 additions & 0 deletions trunk/drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -2154,6 +2154,19 @@ qla2x00_mem_alloc(scsi_qla_host_t *ha)
}
}

/* Get memory for cached NVRAM */
ha->nvram = kzalloc(MAX_NVRAM_SIZE, GFP_KERNEL);
if (ha->nvram == NULL) {
/* error */
qla_printk(KERN_WARNING, ha,
"Memory Allocation failed - nvram cache\n");

qla2x00_mem_free(ha);
msleep(100);

continue;
}

/* Done all allocations without any error. */
status = 0;

Expand Down Expand Up @@ -2266,6 +2279,7 @@ qla2x00_mem_free(scsi_qla_host_t *ha)
ha->fw_dump_reading = 0;

vfree(ha->optrom_buffer);
kfree(ha->nvram);
}

/*
Expand Down

0 comments on commit 3456881

Please sign in to comment.