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

Commit c3e1cf6f authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: msm8x16: avoid access of invalid memory"

parents 3166528a d706b83e
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -818,16 +818,20 @@ static int msm8939_gpio_set_mux_ctl(void)
	iounmap(vaddr);

	vaddr = ioremap(0x103f004, 4);
	if (!vaddr)
	if (!vaddr) {
		pr_err("%s ioremap failure for addr\n",
					__func__);
		return -ENOMEM;
	}
	val = ioread32(vaddr);
	pr_debug("%s:val1 %x\n", __func__, val);
	iounmap(vaddr);
	vaddr = ioremap(0x103f000, 4);
	if (!vaddr)
	if (!vaddr) {
		pr_err("%s ioremap failure for addr2\n",
					__func__);
		return -ENOMEM;
	}
	val = ioread32(vaddr);
	pr_debug("%s:val2 %x\n", __func__, val);
	iounmap(vaddr);