diff options
author | 2008-08-14 14:59:12 +1000 | |
---|---|---|
committer | 2008-08-14 14:59:12 +1000 | |
commit | 8d5636fbca202f61fdb808fc9e20c0142291d802 (patch) | |
tree | e6d9d9375f0f7894931749b687e66a19e5dffa84 /lib/bitmap.c | |
parent | powerpc/spufs: fix npc setting for NOSCHED contexts (diff) | |
download | wireguard-linux-8d5636fbca202f61fdb808fc9e20c0142291d802.tar.xz wireguard-linux-8d5636fbca202f61fdb808fc9e20c0142291d802.zip |
powerpc/spufs: reference context while dropping state mutex in scheduler
Based on an original patch from Christoph Hellwig <hch@lst.de>.
Currently, there is a possible reference-after-free in the spusched
code - contexts may be freed after we have released their state_mutex
in spusched_tick and find_victim.
This change takes a reference to the context before releasing the
mutex, so that the context doesn't get destroyed.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions