commit | 63398413c00c7836ea87a1fa205c91d2199b25cf | [log] [tgz] |
---|---|---|
author | Vitaly Wool <[email protected]> | Mon Sep 23 15:36:51 2019 -0700 |
committer | Linus Torvalds <[email protected]> | Tue Sep 24 15:54:10 2019 -0700 |
tree | 9c87ffdb23724803f8e8b9706531f46b667586ce | |
parent | b57a775f5130dd83ba0e7f46cd86741bf19b71c5 [diff] |
z3fold: fix memory leak in kmem cache Currently there is a leak in init_z3fold_page() -- it allocates handles from kmem cache even for headless pages, but then they are never used and never freed, so eventually kmem cache may get exhausted. This patch provides a fix for that. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Vitaly Wool <[email protected]> Reported-by: Markus Linnala <[email protected]> Tested-by: Markus Linnala <[email protected]> Cc: Dan Streetman <[email protected]> Cc: Henry Burns <[email protected]> Cc: Shakeel Butt <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>