[PATCH v4 4/9] crypto/nx: Initialize coproc entry with kzalloc
Herbert Xu
herbert at gondor.apana.org.au
Mon Mar 23 17:30:55 AEDT 2020
On Sun, Mar 22, 2020 at 09:03:00PM -0700, Haren Myneni wrote:
>
> coproc entry is initialized during NX probe on power9, but not on P8.
> nx842_delete_coprocs() is used for both and frees receive window if it
> is allocated. Getting crash for rmmod on P8 since coproc->vas.rxwin
> is not initialized.
>
> This patch replaces kmalloc with kzalloc in nx842_powernv_probe()
>
> Signed-off-by: Haren Myneni <haren at linux.ibm.com>
> ---
> drivers/crypto/nx/nx-842-powernv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Acked-by: Herbert Xu <herbert at gondor.apana.org.au>
--
Email: Herbert Xu <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the Linuxppc-dev
mailing list