https://github.com/torvalds/linux
Revision 078c6c3a5e7dc53a9a23408cc32c83954abb5d0d authored by Rasmus Villemoes on 12 February 2016, 00:13:06 UTC, committed by Linus Torvalds on 12 February 2016, 02:35:48 UTC
We need to use post-decrement to get percpu_counter_destroy() called on
&wb->stat[0].  Moreover, the pre-decremebt would cause infinite
out-of-bounds accesses if the setup code failed at i==0.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Vladimir Davydov <vdavydov@virtuozzo.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 6b9116a
History
Tip revision: 078c6c3a5e7dc53a9a23408cc32c83954abb5d0d authored by Rasmus Villemoes on 12 February 2016, 00:13:06 UTC
mm/backing-dev.c: fix error path in wb_init()
Tip revision: 078c6c3
File Mode Size
README.txt -rw-r--r-- 1.2 KB
atomic-ops.txt -rw-r--r-- 4.5 KB
booting.txt -rw-r--r-- 5.8 KB
clock.txt -rw-r--r-- 2.4 KB
configuring.txt -rw-r--r-- 4.0 KB
features.txt -rw-r--r-- 10.6 KB
gdbinit -rw-r--r-- 11.4 KB
gdbstub.txt -rw-r--r-- 4.7 KB
kernel-ABI.txt -rw-r--r-- 9.2 KB
mmu-layout.txt -rw-r--r-- 13.9 KB

README.txt

back to top