Re: [PATCH] x86: Fix memory leak of init_vdso_vars()
From: Andi Kleen
Date: Thu Jul 07 2011 - 14:33:38 EST
On 7/7/2011 6:14 AM, Michal Hocko wrote:
On Tue 05-07-11 14:21:48, wzt wrote:
Fix memory leak of init_vdso_vars().
Signed-off-by: Zhitong Wang<zhitong.wangzt@xxxxxxxxxxxxxxx>
The patch looks correct but it could be cleaned up a bit IMO.
See bellow.
When you run out of memory at early system boot (this is early
system boot only) the system is toast anyways. There's no way
to recover.
I would just add a few GFP_PANICs and then drop the error paths.
-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/