mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
solve gsensor deadlock problem.
This commit is contained in:
parent
dbc0fca461
commit
33af2d2d14
|
|
@ -447,8 +447,10 @@ static long gsensor_dev_ioctl(struct file *file,
|
|||
DBG("%s:GSENSOR_IOCTL_APP_SET_RATE start\n", __func__);
|
||||
mutex_lock(&sensor->operation_mutex);
|
||||
result = sensor_reset_rate(client, rate);
|
||||
if (result < 0)
|
||||
goto error;
|
||||
if (result < 0){
|
||||
mutex_unlock(&sensor->operation_mutex);
|
||||
goto error;
|
||||
}
|
||||
if(sensor->status_cur == SENSOR_OFF)
|
||||
{
|
||||
if(sensor->pdata->irq_enable)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user