]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: bfa: Use zeroing allocator rather than allocator/memset
authorHimanshu Jha <himanshujha199640@gmail.com>
Sat, 30 Dec 2017 15:28:31 +0000 (20:58 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 4 Jan 2018 06:12:32 +0000 (01:12 -0500)
commitbde70f3c0e02bc3ed1974dc755c2f29c82f85eda
treee1102ddcc13f2096fed2d56a49e24bef75d22513
parent0558312110def79e1b8bc20133dc50bb11c62e6e
scsi: bfa: Use zeroing allocator rather than allocator/memset

Use vzalloc instead of vmalloc followed by memset 0.

Generated-by: scripts/coccinelle/api/alloc/kzalloc-simple.cocci
Suggested-by: Luis R. Rodriguez <mcgrof@kernel.org>
Signed-off-by: Himanshu Jha <himanshujha199640@gmail.com>
Acked-by: Anil Gurumurthy <anil.gurumurthy@cavium.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bfa/bfad.c
drivers/scsi/bfa/bfad_debugfs.c