projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8af7b0f
)
crypto: caam - Provide correct value to iounmap() in controller driver
author
Victoria Milhoan
<vicki.milhoan@freescale.com>
Mon, 15 Jun 2015 23:52:58 +0000
(16:52 -0700)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Tue, 16 Jun 2015 06:35:42 +0000
(14:35 +0800)
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>
drivers/crypto/caam/ctrl.c
patch
|
blob
|
history
diff --git
a/drivers/crypto/caam/ctrl.c
b/drivers/crypto/caam/ctrl.c
index efba4ccd4facaa13da181e2fa57a11a4171c2744..efacab7539ef6a8afdacbfb8d9965a0ec4f9ef75 100644
(file)
--- 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;
}