projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee3dd58
)
soc/qman: Check ioremap return value
author
Madalin Bucur
<madalin.bucur@nxp.com>
Wed, 16 Nov 2016 14:40:14 +0000
(16:40 +0200)
committer
Scott Wood
<oss@buserror.net>
Wed, 23 Nov 2016 07:23:38 +0000
(
01:23
-0600)
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Scott Wood <oss@buserror.net>
drivers/soc/fsl/qbman/qman_ccsr.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/soc/fsl/qbman/qman_ccsr.c
b/drivers/soc/fsl/qbman/qman_ccsr.c
index 0cace9e0077e0c685b0c74bd0da57389d2d037e7..f4e6e70de259918c4d154698919b81698dff4bc7 100644
(file)
--- a/
drivers/soc/fsl/qbman/qman_ccsr.c
+++ b/
drivers/soc/fsl/qbman/qman_ccsr.c
@@
-444,6
+444,9
@@
static int zero_priv_mem(struct device *dev, struct device_node *node,
/* map as cacheable, non-guarded */
void __iomem *tmpp = ioremap_prot(addr, sz, 0);
+ if (!tmpp)
+ return -ENOMEM;
+
memset_io(tmpp, 0, sz);
flush_dcache_range((unsigned long)tmpp,
(unsigned long)tmpp + sz);