drm/msm: EBUSY status handling in msm_gem_fault()
Subsequent threads returning EBUSY from vm_insert_pfn() was not
handled correctly. As a result concurrent access from new threads
to mmapped data caused SIGBUS.
See e79e0fe3
Signed-off-by: Rob Clark <robdclark@gmail.com>
Acked-by: David Brown <davidb@codeaurora.org>
This commit is contained in:
parent
edd4fc63a3
commit
505886d506
1 changed files with 5 additions and 0 deletions
|
@ -178,6 +178,11 @@ out:
|
||||||
case 0:
|
case 0:
|
||||||
case -ERESTARTSYS:
|
case -ERESTARTSYS:
|
||||||
case -EINTR:
|
case -EINTR:
|
||||||
|
case -EBUSY:
|
||||||
|
/*
|
||||||
|
* EBUSY is ok: this just means that another thread
|
||||||
|
* already did the job.
|
||||||
|
*/
|
||||||
return VM_FAULT_NOPAGE;
|
return VM_FAULT_NOPAGE;
|
||||||
case -ENOMEM:
|
case -ENOMEM:
|
||||||
return VM_FAULT_OOM;
|
return VM_FAULT_OOM;
|
||||||
|
|
Loading…
Add table
Reference in a new issue