aboutsummaryrefslogtreecommitdiff
path: root/drivers/mtd/lpddr/lpddr_cmds.c
diff options
context:
space:
mode:
authorRik van Riel <[email protected]>2009-07-29 15:02:07 -0700
committerLinus Torvalds <[email protected]>2009-07-29 19:10:34 -0700
commit933b787b57ca8bdc0fc8fb2cbf67b5e6d21beb84 (patch)
treeaae84533e71c7574ab8dd6f0ca4b782de121e482 /drivers/mtd/lpddr/lpddr_cmds.c
parent6583bb64fc370842b32a87c67750c26f6d559af0 (diff)
mm: copy over oom_adj value at fork time
Fix a post-2.6.31 regression which was introduced by 2ff05b2b4eac2e63d345fc731ea151a060247f53 ("oom: move oom_adj value from task_struct to mm_struct"). After moving the oom_adj value from the task struct to the mm_struct, the oom_adj value was no longer properly inherited by child processes. Copying over the oom_adj value at fork time fixes that bug. [[email protected]: test for current->mm before dereferencing it] Signed-off-by: Rik van Riel <[email protected]> Reported-by: Paul Menage <[email protected]> Cc: KOSAKI Motohiro <[email protected]> Acked-by: David Rientjes <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions