Re: [PATCH 2/2] pstore: fix memory leak when decompress using big_oops_buf

2014-03-17 Thread Tony Luck
Ok - applied the original two that Andrew had allready taken into -mm, plus these four to my "next" branch. So I have these queued: Liu ShuoX (6): pstore: clarify clearing of _read_cnt in ramoops_context pstore: skip zero size persistent ram buffer in traverse pstore: Fix NULL p

Re: [PATCH 2/2] pstore: fix memory leak when decompress using big_oops_buf

2014-03-12 Thread Kees Cook
On Wed, Mar 12, 2014 at 6:34 AM, Liu Shuo wrote: > From: Liu ShuoX > > After sucessful decompressing, the buffer which pointed by 'buf' will be > lost as 'buf' is overwrite by 'big_oops_buf' and will never be freed. > Signed-off-by: Liu ShuoX Thanks again! Acked-by: Kees Cook -Kees > --- >

[PATCH 2/2] pstore: fix memory leak when decompress using big_oops_buf

2014-03-12 Thread Liu Shuo
From: Liu ShuoX After sucessful decompressing, the buffer which pointed by 'buf' will be lost as 'buf' is overwrite by 'big_oops_buf' and will never be freed. Signed-off-by: Liu ShuoX --- fs/pstore/platform.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/pstore/platform.c b/fs/pstore