projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0551fbd
)
[PATCH] out_of_memory(): use of uninitialised
author
Andrew Morton
<akpm@osdl.org>
Wed, 1 Mar 2006 00:59:19 +0000
(16:59 -0800)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Wed, 1 Mar 2006 04:53:44 +0000
(20:53 -0800)
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>
mm/oom_kill.c
patch
|
blob
|
blame
|
history
diff --git
a/mm/oom_kill.c
b/mm/oom_kill.c
index 8123fad5a485dbe90095f251a440bd83bacc10ab..c86c737d243311bfa140565885adf6bc74027524 100644
(file)
--- a/
mm/oom_kill.c
+++ b/
mm/oom_kill.c
@@
-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",