]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: fnic: Use vcalloc() instead of vmalloc() and memset(0)
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 7 Nov 2024 10:42:59 +0000 (11:42 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 4 Dec 2024 18:03:27 +0000 (13:03 -0500)
commit5f8822c4a4209b186ba655841993e5797c31e19e
treee6507cdef25cffec2f8d6565d4103b636f191ec3
parent40384c840ea1944d7c5a392e8975ed088ecf0b37
scsi: fnic: Use vcalloc() instead of vmalloc() and memset(0)

Use vcalloc() instead of vmalloc() followed by memset(0) to simplify the
functions fnic_trace_buf_init() and fnic_fc_trace_init().

Compile-tested only.

Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20241107104300.1252-1-thorsten.blum@linux.dev
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic_trace.c