]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerSomasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Thu, 24 Aug 2017 17:55:16 +0000 (10:55 -0700)
commitb48afda0131e7d1023fc3f62fa3f660035afa5e5
treec7d7a7a897e79ae80dc6c159fee5ef70164587a4
parent520b2d3e53a8fd63583da687ce77fdfe21ca03da
crypto: ccp - add missing release in ccp_dmaengine_register

Orabug: 26644685

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>
(cherry picked from commit ba22a1e2aa8ef7f8467f755cfe44b79784febefe)
Signed-off-by: Somasundaram Krishnasamy <somasundaram.krishnasamy@oracle.com>
Reviewed-by: Jack Vogel <jack.vogel@oracle.com>
drivers/crypto/ccp/ccp-dmaengine.c