aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mpi/mpi-internal.h
diff options
context:
space:
mode:
authorWen Congyang <[email protected]>2012-09-17 21:08:55 +0000
committerLinus Torvalds <[email protected]>2012-09-17 22:00:37 +0000
commit18b48d5873a6fc8e0e6044ddb572fcda26988f19 (patch)
tree0f26f8c1e70b8d07b1e45b36f0dfc1b1c7a60131 /lib/mpi/mpi-internal.h
parentfs/proc: fix potential unregister_sysctl_table hang (diff)
downloadkernel-18b48d5873a6fc8e0e6044ddb572fcda26988f19.tar.gz
kernel-18b48d5873a6fc8e0e6044ddb572fcda26988f19.zip
memory hotplug: reset pgdat->kswapd to NULL if creating kernel thread fails
If kthread_run() fails, pgdat->kswapd contains errno. When we stop this thread, we only check whether pgdat->kswapd is NULL and access it. If it contains errno, it will cause page fault. Reset pgdat->kswapd to NULL when creating kernel thread fails can avoid this problem. Signed-off-by: Wen Congyang <[email protected]> Reviewed-by: Minchan Kim <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions