mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
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
61240ba459
commit
be257cc03f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user