crypto: picoxcell - Fix error handling in spacc_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 19 Jan 2018 21:53:15 +0000 (00:53 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 25 Jan 2018 14:10:36 +0000 (01:10 +1100)
commit2d55807b7f7bf62bb05a8b91247c5eb7cd19ac04
tree686620593001ed539eed0205679fb7e88c8f70de
parentfb87127bcefc17efab757606e1b1e333fd614dd0
crypto: picoxcell - Fix error handling in spacc_probe()

If clk_get() fails, device_remove_file() looks inappropriate.

The error path, where all crypto_register fail, misses resource
deallocations.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/picoxcell_crypto.c