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

Commit dcc730dc authored by Hiroshi DOYU's avatar Hiroshi DOYU Committed by Tony Lindgren
Browse files

omap: iommu: fix wrong condition check for SUPERSECTION



A bit (2 << 0) is set both on SECTION and SUPERSECTION. To identify
SUPERSECTION correctly, other bits should be compared too.

Reported-by: default avatar"Srinivas Pulukuru" <srinivas.pulukuru@ti.com>
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 9da65a99
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -664,7 +664,7 @@ static size_t iopgtable_clear_entry_core(struct iommu *obj, u32 da)
		nent = 1; /* for the next L1 entry */
	} else {
		bytes = IOPGD_SIZE;
		if (*iopgd & IOPGD_SUPER) {
		if ((*iopgd & IOPGD_SUPER) == IOPGD_SUPER) {
			nent *= 16;
			/* rewind to the 1st entry */
			iopgd = (u32 *)((u32)iopgd & IOSUPER_MASK);