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

Commit be257cc0 authored by Yunyun Cao's avatar Yunyun Cao Committed by Gerrit - the friendly Code Review server
Browse files

msm: sde: Add mutex unlock for debug buffer access in rotator



mutex lock should be unlocked before returning if the offset is not right.

Change-Id: I11945696d2c4078c28266312915837a812fedcc8
Signed-off-by: default avatarYunyun Cao <yunyunc@codeaurora.org>
parent 61240ba4
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -1271,8 +1271,10 @@ static ssize_t sde_rotator_debug_base_reg_read(struct file *file,
			goto debug_read_error;
			goto debug_read_error;
		}
		}


		if (dbg->off % sizeof(u32))
		if (dbg->off % sizeof(u32)) {
			return -EFAULT;
			rc = -EFAULT;
			goto debug_read_error;
		}


		ptr = dbg->base + dbg->off;
		ptr = dbg->base + dbg->off;
		tot = 0;
		tot = 0;