]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cavium/nitrox - Fix an error handling path in 'nitrox_probe()'
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Wed, 16 Aug 2017 05:16:06 +0000 (07:16 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 22 Aug 2017 06:54:55 +0000 (14:54 +0800)
commit97db3b2f2406f4f9d4a6d38a5d23564e11aa6130
tree5c62e6556aa684e94d7f05ff193be8e956436681
parentc098f0c1042de597758c138ef73407f3c8488b31
crypto: cavium/nitrox - Fix an error handling path in 'nitrox_probe()'

'err' is known to be 0 at this point.
If 'kzalloc()' fails, returns -ENOMEM instead of 0 which means success.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/nitrox/nitrox_main.c