Commit 7250d12d authored by Sabyasachi Gupta's avatar Sabyasachi Gupta Committed by Martin K. Petersen

scsi: snic: Use vzalloc

Replaced vmalloc + memset with vzalloc
Signed-off-by: default avatarSabyasachi Gupta <sabyasachi.linux@gmail.com>
Acked-by: default avatarSesidhar Baddela <sebaddel@cisco.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent e3f230c0
......@@ -126,7 +126,7 @@ snic_trc_init(void)
int tbuf_sz = 0, ret;
tbuf_sz = (snic_trace_max_pages * PAGE_SIZE);
tbuf = vmalloc(tbuf_sz);
tbuf = vzalloc(tbuf_sz);
if (!tbuf) {
SNIC_ERR("Failed to Allocate Trace Buffer Size. %d\n", tbuf_sz);
SNIC_ERR("Trace Facility not enabled.\n");
......@@ -135,7 +135,6 @@ snic_trc_init(void)
return ret;
}
memset(tbuf, 0, tbuf_sz);
trc->buf = (struct snic_trc_data *) tbuf;
spin_lock_init(&trc->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment