Andrew Morton 91b57191cf mm/vmpressure.c: fix race in vmpressure_work_fn()
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: ji_ang <ji_ang@163.com>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-12-02 17:32:07 -08:00
..
2014-10-09 22:25:59 -04:00
2014-10-09 22:26:00 -04:00
2014-09-24 14:07:58 +02:00
2014-10-09 22:26:00 -04:00
2014-10-09 22:25:58 -04:00
2014-10-24 00:14:37 +02:00
2014-10-09 22:26:02 -04:00
2014-08-29 16:28:16 -07:00