aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2018-05-25 14:47:17 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2018-05-25 18:12:10 -0700
commit7cbf319234adaa4518a28c8c523d3330e06638f0 (patch)
treec25ce860d1ba8ac686456d181acca73048d3a1a5 /tools/testing/radix-tree
parentMerge tag 'arm64-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux (diff)
downloadlinux-dev-7cbf319234adaa4518a28c8c523d3330e06638f0.tar.xz
linux-dev-7cbf319234adaa4518a28c8c523d3330e06638f0.zip
mm: fix nr_rotate_swap leak in swapon() error case
If swapon() fails after incrementing nr_rotate_swap, we don't decrement it and thus effectively leak it. Make sure we decrement it if we incremented it. Link: http://lkml.kernel.org/r/b6fe6b879f17fa68eee6cbd876f459f6e5e33495.1526491581.git.osandov@fb.com Fixes: 81a0298bdfab ("mm, swap: don't use VMA based swap readahead if HDD is used as swap") Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Rik van Riel <riel@surriel.com> Reviewed-by: "Huang, Ying" <ying.huang@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing/radix-tree')
0 files changed, 0 insertions, 0 deletions