Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit e2a794f1 authored by Andrew Morton's avatar Andrew Morton Committed by Greg Kroah-Hartman
Browse files

mm/vmpressure.c: fix race in vmpressure_work_fn()

commit 91b57191 upstream.

In some android devices, there will be a "divide by zero" exception.
vmpr->scanned could be zero before spin_lock(&vmpr->sr_lock).

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=88051



[akpm@linux-foundation.org: neaten]
Reported-by: default avatarji_ang <ji_ang@163.com>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a2eb17df
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment