module: Use vzalloc() instead of vmalloc()/memset(0)
authorYang Yingliang <yangyingliang@huawei.com>
Mon, 4 Jul 2022 12:03:37 +0000 (20:03 +0800)
committerLuis Chamberlain <mcgrof@kernel.org>
Mon, 11 Jul 2022 17:49:14 +0000 (10:49 -0700)
commit2b9401e90d369b5fbb8a62e9034ad97297594475
tree0cc38c5bba811c9dc262749c4192be778d129635
parent87c482bdfa79f378297d92af49cdf265be199df5
module: Use vzalloc() instead of vmalloc()/memset(0)

Use vzalloc() instead of vmalloc() and memset(0) to simpify the code.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Aaron Tomlin <atomlin@redhat.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
kernel/module/main.c