aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu-notifier-error-inject.c
diff options
context:
space:
mode:
authorKAMEZAWA Hiroyuki <[email protected]>2009-11-11 14:26:26 -0800
committerLinus Torvalds <[email protected]>2009-11-12 07:25:56 -0800
commite00e431612c3a6e437a01f2129fd3843da0c982a (patch)
tree4f838123d0b295ab3608380ce803c8960a8ebfd0 /lib/cpu-notifier-error-inject.c
parentb9f9d4706cb1b706f89f98ea6ead41ebecdefbc2 (diff)
memcg: fix wrong pointer initialization at page migration when memcg is disabled.
Lee Schermerhorn reported that he saw bad pointer dereference in mem_cgroup_end_migration() when he disabled memcg by boot option. memcg's page migration logic works as mem_cgroup_prepare_migration(page, &ptr); do page migration mem_cgroup_end_migration(page, ptr); Now, ptr is not initialized in prepare_migration when memcg is disabled by boot option. This causes panic in end_migration. This patch fixes it. Reported-by: Lee Schermerhorn <[email protected]> Cc: Balbir Singh <[email protected]> Signed-off-by: KAMEZAWA Hiroyuki <[email protected]> Reviewed-by: Daisuke Nishimura <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions