]> git.proxmox.com Git - mirror_zfs.git/commit
Cleanup: Use kmem_zalloc() instead of memset() to zero memory
authorRichard Yao <richard.yao@alumni.stonybrook.edu>
Tue, 10 Jan 2023 19:06:53 +0000 (14:06 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 12 Jan 2023 23:59:28 +0000 (15:59 -0800)
commitc9c3ce79765d2f3c2714281f19dcaf711a090ac2
treef6d57c7b864d5389a9aa06249724536010fe0122
parent7384ec65cd6b44511f0cdf54768bfe583ce14a27
Cleanup: Use kmem_zalloc() instead of memset() to zero memory

The Linux 5.16.14 kernel's coccicheck caught this. The semantic patch
that caught it was:

./scripts/coccinelle/api/alloc/zalloc-simple.cocci

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14372
module/os/freebsd/zfs/zio_crypt.c