diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2014-12-02 15:59:28 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-02 17:32:07 -0800 |
commit | 91b57191cfd152c02ded0745250167d0263084f8 (patch) | |
tree | 677bb8c059094859904003cb7af01cbee1d9773e /ipc | |
parent | fb993fa1a2f669215fa03a09eed7848f2663e336 (diff) | |
download | op-kernel-dev-91b57191cfd152c02ded0745250167d0263084f8.zip op-kernel-dev-91b57191cfd152c02ded0745250167d0263084f8.tar.gz |
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>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions