mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-07 21:53:44 +00:00
[PATCH] out_of_memory(): use of uninitialised
Under some circumstances `points' can get printed before it's initialised. Spotted by Carlos Martin <carlos@cmartin.tk>. Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
0551fbd29e
commit
d6713e0463
@ -302,7 +302,7 @@ void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order)
|
||||
{
|
||||
struct mm_struct *mm = NULL;
|
||||
task_t *p;
|
||||
unsigned long points;
|
||||
unsigned long points = 0;
|
||||
|
||||
if (printk_ratelimit()) {
|
||||
printk("oom-killer: gfp_mask=0x%x, order=%d\n",
|
||||
|
Loading…
Reference in New Issue
Block a user