--- a/drivers/staging/android/ashmem.c +++ b/drivers/staging/android/ashmem.c @@ -331,8 +331,6 @@ static loff_t ashmem_llseek(struct file *file, loff_t offset, int origin) struct ashmem_area *asma = file->private_data; int ret; - mutex_lock(&ashmem_mutex); - if (asma->size == 0) { ret = -EINVAL; goto out; @@ -351,7 +349,6 @@ static loff_t ashmem_llseek(struct file *file, loff_t offset, int origin) file->f_pos = asma->file->f_pos; out: - mutex_unlock(&ashmem_mutex); return ret; }