Merge "msm: sde: Add mutex unlock for debug buffer access in rotator"
This commit is contained in:
commit
ae5f5a5335
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