OpenCloudOS-Kernel/drivers/crypto/ux500/cryp
Vladimir Zapolskiy b62917a262 crypto: ux500 - fix checks of error code returned by devm_ioremap_resource()
The change fixes potential oops while accessing iomem on invalid
address, if devm_ioremap_resource() fails due to some reason.

The devm_ioremap_resource() function returns ERR_PTR() and never
returns NULL, which makes useless a following check for NULL.

Signed-off-by: Vladimir Zapolskiy <vz@mleia.com>
Fixes: 5a4eea2658 ("crypto: ux500 - Use devm_xxx() managed function")
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2016-03-11 21:19:20 +08:00
..
Makefile crypto: ux500 - Add driver for CRYP hardware 2012-05-04 19:04:51 +10:00
cryp.c crypto: ux500/crypt: add missing __iomem qualifiers 2013-06-25 14:51:22 +02:00
cryp.h crypto: ux500/cryp - Set DMA configuration though dma_slave_config() 2013-05-23 21:14:17 +02:00
cryp_core.c crypto: ux500 - fix checks of error code returned by devm_ioremap_resource() 2016-03-11 21:19:20 +08:00
cryp_irq.c crypto: ux500 - Add driver for CRYP hardware 2012-05-04 19:04:51 +10:00
cryp_irq.h crypto: ux500 - Add driver for CRYP hardware 2012-05-04 19:04:51 +10:00
cryp_irqp.h crypto: ux500 - Add driver for CRYP hardware 2012-05-04 19:04:51 +10:00
cryp_p.h crypto: ux500 - Cleanup hardware identification 2012-05-15 17:25:33 +10:00