vcsm: Treat EBUSY as success rather than SIGBUS
authorpopcornmix <popcornmix@gmail.com>
Tue, 2 May 2017 15:36:05 +0000 (16:36 +0100)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 23 Jul 2017 02:50:35 +0000 (02:50 +0000)
commit21127088af8bc936eed993ccf866143c3f4a0a8d
treebce83fcb70728ef713b955d7de4f16e0afa73b47
parent1c5fd7176c241c298a3b17aafc7b9b9136104f6e
vcsm: Treat EBUSY as success rather than SIGBUS

Currently if two cores access the same page concurrently one will return VM_FAULT_NOPAGE
and the other VM_FAULT_SIGBUS crashing the user code.

Also report when mapping fails.

Signed-off-by: popcornmix <popcornmix@gmail.com>
drivers/char/broadcom/vc_sm/vmcs_sm.c