linux-xiaomi-chiron/drivers/crypto/cavium/nitrox
Christophe JAILLET 0dc64297c8 crypto: cavium/nitrox - Fix an error rhandling path in 'nitrox_probe()'
If an error occurs after a successful 'ioremap()' call, it must be undone
by a corresponding 'iounmap()' call, as already done in the remove
function.
Add a 'pf_sw_fail' label in the error handling path and add the missing
'iounmap()'.

While at it, also add a 'flr_fail' label in the error handling path and use
it to avoid some code duplication.

Fixes: 14fa93cdcd ("crypto: cavium - Add support for CNN55XX adapters.")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2021-06-11 15:08:06 +08:00
..
Kconfig
Makefile
nitrox_aead.c
nitrox_algs.c
nitrox_common.h
nitrox_csr.h
nitrox_debugfs.c
nitrox_debugfs.h
nitrox_dev.h
nitrox_hal.c
nitrox_hal.h
nitrox_isr.c
nitrox_isr.h
nitrox_lib.c
nitrox_main.c
nitrox_mbx.c
nitrox_mbx.h
nitrox_req.h
nitrox_reqmgr.c
nitrox_skcipher.c
nitrox_sriov.c