diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-02-26 03:31:42 +0100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-02-27 08:47:53 +0100 |
commit | d58831375d68a3bd39d5ebab9eca711fbb4ee108 (patch) | |
tree | a232a5cb9715a9a4740e21a4f0fc757e1286a7d0 /sound | |
parent | [POWERPC] cell: fix spurious false return from spu_trap_data_{map,seg} (diff) | |
download | linux-d58831375d68a3bd39d5ebab9eca711fbb4ee108.tar.xz linux-d58831375d68a3bd39d5ebab9eca711fbb4ee108.zip |
[POWERPC] spufs: fix context destruction during psmap fault
We have a small window where a spu context may be destroyed while
we're servicing a page fault (from another thread) to the context's
problem state mapping.
After we up_read() the mmap_sem, it's possible that the context is
destroyed by its owning thread, and so the later references to ctx
are invalid. This can maifest as a deadlock on the (now free()-ed)
context state mutex.
This change adds a reference to the context before we release the
mmap_sem, so that the context cannot be destroyed.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions