crypto: caam - Unmap region obtained by of_iomap
authorArvind Yadav <[email protected]>
Wed, 28 Sep 2016 10:31:42 +0000 (16:01 +0530)
committerHerbert Xu <[email protected]>
Sun, 2 Oct 2016 14:33:43 +0000 (22:33 +0800)
Free memory mapping, if probe is not successful.

Signed-off-by: Arvind Yadav <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
drivers/crypto/caam/jr.c

index 320228875e9a8187d4f03fc1b7868df15e32c271..757c27f9953d52aa4b662f317b7c0d5ff508a685 100644 (file)
@@ -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;
        }