summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSasha Levin <levinsasha928@gmail.com>2012-05-10 13:01:44 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2012-05-10 15:06:44 -0700
commit93278814d3590eba0ee360b8d69a35c7f2203ea8 (patch)
tree17784192015e71464f1064af2b071c8cd7fe7f13 /fs
parent16fbdce62d9c89b794e303f4a232e4749b77e9ac (diff)
downloadop-kernel-dev-93278814d3590eba0ee360b8d69a35c7f2203ea8.zip
op-kernel-dev-93278814d3590eba0ee360b8d69a35c7f2203ea8.tar.gz
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 'fs')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud