summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/caam/jr.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2016-09-28 12:31:42 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2016-10-02 16:33:43 +0200
commit3387879524ec07fd9ba371eddd17e717abdd5e4f (patch)
treeefbea756804754837593ce61f235c02262f6f494 /drivers/crypto/caam/jr.c
parentcrypto: sha1-powerpc - little-endian support (diff)
downloadlinux-3387879524ec07fd9ba371eddd17e717abdd5e4f.tar.xz
linux-3387879524ec07fd9ba371eddd17e717abdd5e4f.zip
crypto: caam - Unmap region obtained by of_iomap
Free memory mapping, if probe is not successful. Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/caam/jr.c')
-rw-r--r--drivers/crypto/caam/jr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/caam/jr.c b/drivers/crypto/caam/jr.c
index 320228875e9a..757c27f9953d 100644
--- a/drivers/crypto/caam/jr.c
+++ b/drivers/crypto/caam/jr.c
@@ -506,6 +506,7 @@ static int caam_jr_probe(struct platform_device *pdev)
error = caam_jr_init(jrdev); /* now turn on hardware */
if (error) {
irq_dispose_mapping(jrpriv->irq);
+ iounmap(ctrl);
return error;
}