diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2021-06-05 14:55:56 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2021-06-11 15:08:06 +0800 |
commit | 0dc64297c8ac98503a7c7621b3c78e151deb75b6 (patch) | |
tree | 7432f5aaf802c9cae62ae62f5d13968b05a690ab /sound/core | |
parent | 5cd259ca5d466f65ffd21e2e2fa00fb648a8c555 (diff) | |
download | linux-0dc64297c8ac98503a7c7621b3c78e151deb75b6.tar.gz linux-0dc64297c8ac98503a7c7621b3c78e151deb75b6.tar.bz2 linux-0dc64297c8ac98503a7c7621b3c78e151deb75b6.zip |
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: 14fa93cdcd9b ("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>
Diffstat (limited to 'sound/core')
0 files changed, 0 insertions, 0 deletions