diff options
author | Alistair Strachan <alistair.strachan@imgtec.com> | 2012-06-14 10:08:18 +0100 |
---|---|---|
committer | Android Partner Code Review <android-gerrit-partner@google.com> | 2012-06-14 21:36:42 -0700 |
commit | ca5c535e1e9cae41831adae5a29a76f848f7f792 (patch) | |
tree | ce4884871e95ef05346a5b91c4037cfb2fcf84bb /fs/adfs/file.c | |
parent | fb49c21c25ded40a7616268d0be84422ceb0f709 (diff) | |
download | kernel_samsung_crespo-ca5c535e1e9cae41831adae5a29a76f848f7f792.zip kernel_samsung_crespo-ca5c535e1e9cae41831adae5a29a76f848f7f792.tar.gz kernel_samsung_crespo-ca5c535e1e9cae41831adae5a29a76f848f7f792.tar.bz2 |
gpu: pvr: Add thread safety checks to SGX MMU code.
The SGX MMU code was not designed to be used from multiple driver
threads. One theory is that somehow the driver does sometimes use
the MMU code from multiple threads, which could cause corruption
of meta data.
We must allow PID 1 through because the kernel uses this ID before
userspace is up, and the module_init code interacts with the MMU
subsystem.
Otherwise, check that the outer bridge lock is held. If it is held,
check the PID of the caller matches the PID holding the bridge lock.
Change-Id: I35f42f251316b158576e5d853f8099e24942b4f2
Diffstat (limited to 'fs/adfs/file.c')
0 files changed, 0 insertions, 0 deletions