Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f4ec6aa5 authored by Victoria Milhoan's avatar Victoria Milhoan Committed by Herbert Xu
Browse files

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: default avatarVictoria Milhoan <vicki.milhoan@freescale.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 8af7b0f8
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -301,7 +301,7 @@ static int caam_remove(struct platform_device *pdev)
#endif
#endif


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


	return ret;
	return ret;
}
}
@@ -496,7 +496,7 @@ static int caam_probe(struct platform_device *pdev)
					sizeof(struct platform_device *) * rspec,
					sizeof(struct platform_device *) * rspec,
					GFP_KERNEL);
					GFP_KERNEL);
	if (ctrlpriv->jrpdev == NULL) {
	if (ctrlpriv->jrpdev == NULL) {
		iounmap(&ctrl);
		iounmap(ctrl);
		return -ENOMEM;
		return -ENOMEM;
	}
	}