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:
parent
467469229d
commit
8ddec64b62
1 changed files with 4 additions and 2 deletions
|
@ -1150,8 +1150,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;
|
||||
|
|
Loading…
Add table
Reference in a new issue