crypto: ccp - add missing release in ccp_dmaengine_register
authorQuentin Lambert <lambert.quentin@gmail.com>
Fri, 2 Sep 2016 09:48:53 +0000 (11:48 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 Sep 2016 13:08:31 +0000 (21:08 +0800)
commitba22a1e2aa8ef7f8467f755cfe44b79784febefe
tree96b0794c506b59b3e445f3641f7b6f590491846a
parented4767d612fd2c39e2c4c69eba484c1219dcddb6
crypto: ccp - add missing release in ccp_dmaengine_register

ccp_dmaengine_register used to return with an error code before
releasing all resource. This patch adds a jump to the appropriate label
ensuring that the resources are properly released before returning.

This issue was found with Hector.

Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-dmaengine.c