We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e579b00 commit b34c7dcCopy full SHA for b34c7dc
drivers/scsi/fnic/fnic_trace.c
@@ -465,7 +465,7 @@ int fnic_trace_buf_init(void)
465
fnic_max_trace_entries = (trace_max_pages * PAGE_SIZE)/
466
FNIC_ENTRY_SIZE_BYTES;
467
468
- fnic_trace_buf_p = (unsigned long)vzalloc(trace_max_pages * PAGE_SIZE);
+ fnic_trace_buf_p = (unsigned long)vcalloc(trace_max_pages, PAGE_SIZE);
469
if (!fnic_trace_buf_p) {
470
printk(KERN_ERR PFX "Failed to allocate memory "
471
"for fnic_trace_buf_p\n");
0 commit comments