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: Yunyun Cao <yunyunc@codeaurora.org>
This commit is contained in:
Yunyun Cao 2018-06-19 14:08:31 +08:00 committed by Gerrit - the friendly Code Review server
parent 61240ba459
commit be257cc03f

View File

@ -1271,8 +1271,10 @@ static ssize_t sde_rotator_debug_base_reg_read(struct file *file,
goto debug_read_error;
}
if (dbg->off % sizeof(u32))
return -EFAULT;
if (dbg->off % sizeof(u32)) {
rc = -EFAULT;
goto debug_read_error;
}
ptr = dbg->base + dbg->off;
tot = 0;