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
arm
arm64
filesystems
video4linux
CodingStyle -rw-r--r-- 28.9 KB
HOWTO -rw-r--r-- 27.2 KB
IRQ.txt -rw-r--r-- 2.0 KB
SecurityBugs -rw-r--r-- 2.7 KB
SubmittingDrivers -rw-r--r-- 7.4 KB
SubmittingPatches -rw-r--r-- 18.9 KB
basic_profiling.txt -rw-r--r-- 2.7 KB
email-clients.txt -rw-r--r-- 9.3 KB
gpio.txt -rw-r--r-- 31.6 KB
io_ordering.txt -rw-r--r-- 2.9 KB
magic-number.txt -rw-r--r-- 9.6 KB
oops-tracing.txt -rw-r--r-- 11.3 KB
sparse.txt -rw-r--r-- 3.8 KB
stable_api_nonsense.txt -rw-r--r-- 9.6 KB
stable_kernel_rules.txt -rw-r--r-- 3.7 KB
volatile-considered-harmful.txt -rw-r--r-- 6.4 KB

back to top