diff options
author | Victoria Milhoan <vicki.milhoan@freescale.com> | 2015-06-15 19:52:58 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-16 02:35:42 -0400 |
commit | f4ec6aa5b018e0ec7edea916644686d572bc595c (patch) | |
tree | fb0ce44fda97bdc1a2f064e1aa6877ff01a77ebc /drivers/crypto | |
parent | 8af7b0f809a3d34657433ec545d64dff9808ce34 (diff) |
crypto: caam - Provide correct value to iounmap() in controller driver
Fix a "Trying to vfree() nonexistent vm area" error when unloading the CAAM
controller module by providing the correct pointer value to iounmap().
Signed-off-by: Victoria Milhoan <vicki.milhoan@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/caam/ctrl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/caam/ctrl.c b/drivers/crypto/caam/ctrl.c index efba4ccd4fac..efacab7539ef 100644 --- a/drivers/crypto/caam/ctrl.c +++ b/drivers/crypto/caam/ctrl.c | |||
@@ -301,7 +301,7 @@ static int caam_remove(struct platform_device *pdev) | |||
301 | #endif | 301 | #endif |
302 | 302 | ||
303 | /* Unmap controller region */ | 303 | /* Unmap controller region */ |
304 | iounmap(&ctrl); | 304 | iounmap(ctrl); |
305 | 305 | ||
306 | return ret; | 306 | return ret; |
307 | } | 307 | } |
@@ -496,7 +496,7 @@ static int caam_probe(struct platform_device *pdev) | |||
496 | sizeof(struct platform_device *) * rspec, | 496 | sizeof(struct platform_device *) * rspec, |
497 | GFP_KERNEL); | 497 | GFP_KERNEL); |
498 | if (ctrlpriv->jrpdev == NULL) { | 498 | if (ctrlpriv->jrpdev == NULL) { |
499 | iounmap(&ctrl); | 499 | iounmap(ctrl); |
500 | return -ENOMEM; | 500 | return -ENOMEM; |
501 | } | 501 | } |
502 | 502 | ||