Commit 02b7d2a8 authored by Madalin Bucur's avatar Madalin Bucur Committed by Scott Wood

soc/qman: Check ioremap return value

Signed-off-by: default avatarMadalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: default avatarClaudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: default avatarScott Wood <oss@buserror.net>
parent ee3dd586
...@@ -444,6 +444,9 @@ static int zero_priv_mem(struct device *dev, struct device_node *node, ...@@ -444,6 +444,9 @@ static int zero_priv_mem(struct device *dev, struct device_node *node,
/* map as cacheable, non-guarded */ /* map as cacheable, non-guarded */
void __iomem *tmpp = ioremap_prot(addr, sz, 0); void __iomem *tmpp = ioremap_prot(addr, sz, 0);
if (!tmpp)
return -ENOMEM;
memset_io(tmpp, 0, sz); memset_io(tmpp, 0, sz);
flush_dcache_range((unsigned long)tmpp, flush_dcache_range((unsigned long)tmpp,
(unsigned long)tmpp + sz); (unsigned long)tmpp + sz);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment