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

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

soc/qman: Check ioremap return value

parent ee3dd586
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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);