Skip to content

Commit

Permalink
crypto: caam - Provide correct value to iounmap() in controller driver
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Victoria Milhoan authored and herbertx committed Jun 16, 2015
1 parent 8af7b0f commit f4ec6aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/crypto/caam/ctrl.c
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ static int caam_remove(struct platform_device *pdev)
#endif

/* Unmap controller region */
iounmap(&ctrl);
iounmap(ctrl);

return ret;
}
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit f4ec6aa

Please sign in to comment.