s390/zcrypt: use kzalloc
authorZou Wei <zou_wei@huawei.com>
Tue, 21 Apr 2020 12:35:48 +0000 (20:35 +0800)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 16 Jun 2020 11:44:04 +0000 (13:44 +0200)
commit79d6c50227103a9f7df9690b38ff74127f69d3cf
tree31e4e4fd12038e8dedde8d53f7375d3f516ac0e1
parentecc28f58e6cc479253bbd9aced013d8d34fef896
s390/zcrypt: use kzalloc

This patch fixes below warning reported by coccicheck

drivers/s390/crypto/zcrypt_ep11misc.c:198:8-15: WARNING:
kzalloc should be used for cprb, instead of kmalloc/memset

Link: https://lkml.kernel.org/r/1587472548-105240-1-git-send-email-zou_wei@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/crypto/zcrypt_ep11misc.c