diff options
author | Victoria Milhoan <vicki.milhoan@freescale.com> | 2015-06-15 16:52:58 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-06-16 14:35:42 +0800 |
commit | f4ec6aa5b018e0ec7edea916644686d572bc595c (patch) | |
tree | fb0ce44fda97bdc1a2f064e1aa6877ff01a77ebc /drivers/crypto | |
parent | 8af7b0f809a3d34657433ec545d64dff9808ce34 (diff) | |
download | talos-obmc-linux-f4ec6aa5b018e0ec7edea916644686d572bc595c.tar.gz talos-obmc-linux-f4ec6aa5b018e0ec7edea916644686d572bc595c.zip |
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) #endif /* Unmap controller region */ - iounmap(&ctrl); + iounmap(ctrl); return ret; } @@ -496,7 +496,7 @@ static int caam_probe(struct platform_device *pdev) sizeof(struct platform_device *) * rspec, GFP_KERNEL); if (ctrlpriv->jrpdev == NULL) { - iounmap(&ctrl); + iounmap(ctrl); return -ENOMEM; } |