]> err.no Git - linux-2.6/commit
[PATCH] cpuset: oops in exit on null cpuset fix
authorPaul Jackson <pj@sgi.com>
Wed, 15 Feb 2006 23:17:38 +0000 (15:17 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 15 Feb 2006 23:32:21 +0000 (15:32 -0800)
commit06fed33849c13af637c4d09e9ba27828fac9edd5
tree0dd2fa91503250edc94ec58b23fbb3e9ad6100f4
parent651c29a17f7ea0204dacbc2a5042d57b1c9e2e37
[PATCH] cpuset: oops in exit on null cpuset fix

Fix a latent bug in cpuset_exit() handling.  If a task tried to allocate
memory after calling cpuset_exit(), it oops'd in
cpuset_update_task_memory_state() on a NULL cpuset pointer.

So set the exiting tasks cpuset to the root cpuset instead of to NULL.

A distro kernel hit this with an added kernel package that had just such a
hook (allocating memory) in the exit code path.

Signed-off-by: Paul Jackson <pj@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/cpuset.c