summaryrefslogtreecommitdiffstats
path: root/mm/vmstat.c
diff options
context:
space:
mode:
authorEugeniu Rosca <erosca@de.adit-jv.com>2020-09-04 16:35:30 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-09-05 12:14:29 -0700
commitdc07a728d49cf025f5da2c31add438d839d076c0 (patch)
tree6036a7914a1e08e54fa2a19a2adf7687ef66bc3a /mm/vmstat.c
parente3336cab2579012b1e72b5265adf98e2d6e244ad (diff)
downloadlinux-dc07a728d49cf025f5da2c31add438d839d076c0.tar.gz
linux-dc07a728d49cf025f5da2c31add438d839d076c0.tar.bz2
linux-dc07a728d49cf025f5da2c31add438d839d076c0.zip
mm: slub: fix conversion of freelist_corrupted()
Commit 52f23478081ae0 ("mm/slub.c: fix corrupted freechain in deactivate_slab()") suffered an update when picked up from LKML [1]. Specifically, relocating 'freelist = NULL' into 'freelist_corrupted()' created a no-op statement. Fix it by sticking to the behavior intended in the original patch [1]. In addition, make freelist_corrupted() immune to passing NULL instead of &freelist. The issue has been spotted via static analysis and code review. [1] https://lore.kernel.org/linux-mm/20200331031450.12182-1-dongli.zhang@oracle.com/ Fixes: 52f23478081ae0 ("mm/slub.c: fix corrupted freechain in deactivate_slab()") Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Cc: Dongli Zhang <dongli.zhang@oracle.com> Cc: Joe Jin <joe.jin@oracle.com> Cc: Christoph Lameter <cl@linux.com> Cc: Pekka Enberg <penberg@kernel.org> Cc: David Rientjes <rientjes@google.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: <stable@vger.kernel.org> Link: https://lkml.kernel.org/r/20200824130643.10291-1-erosca@de.adit-jv.com Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmstat.c')
0 files changed, 0 insertions, 0 deletions