summaryrefslogtreecommitdiffstats
path: root/mm/Kconfig.debug
diff options
context:
space:
mode:
authorSasha Levin <levinsasha928@gmail.com>2012-05-10 22:01:44 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-11 00:06:44 +0200
commit93278814d3590eba0ee360b8d69a35c7f2203ea8 (patch)
tree17784192015e71464f1064af2b071c8cd7fe7f13 /mm/Kconfig.debug
parentproc/pid/pagemap: correctly report non-present ptes and holes between vmas (diff)
downloadlinux-93278814d3590eba0ee360b8d69a35c7f2203ea8.tar.xz
linux-93278814d3590eba0ee360b8d69a35c7f2203ea8.zip
mm: fix division by 0 in percpu_pagelist_fraction()
percpu_pagelist_fraction_sysctl_handler() has only considered -EINVAL as a possible error from proc_dointvec_minmax(). If any other error is returned, it would proceed to divide by zero since percpu_pagelist_fraction wasn't getting initialized at any point. For example, writing 0 bytes into the proc file would trigger the issue. Signed-off-by: Sasha Levin <levinsasha928@gmail.com> Reviewed-by: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions