]> git.baikalelectronics.ru Git - kernel.git/commit
sched: numa: ksm: fix oops in task_numa_placment()
authorHugh Dickins <hughd@google.com>
Thu, 20 Dec 2012 01:42:16 +0000 (17:42 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 20 Dec 2012 15:06:56 +0000 (07:06 -0800)
commit46adae5429e1fbcaca4f49abb0c75de9ed4984f9
tree9839b9321ab7c3dc86f003d69cae522a78d02f20
parentf6d5bb68d460ad6ce56b4e5ea2dfc925d87d1fd6
sched: numa: ksm: fix oops in task_numa_placment()

task_numa_placement() oopsed on NULL p->mm when task_numa_fault() got
called in the handling of break_ksm() for ksmd.  That might be a
peculiar case, which perhaps KSM could takes steps to avoid? but it's
more robust if task_numa_placement() allows for such a possibility.

Signed-off-by: Hugh Dickins <hughd@google.com>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sched/fair.c