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
alps.txt -rw-r--r-- 13.5 KB
amijoy.txt -rw-r--r-- 7.5 KB
appletouch.txt -rw-r--r-- 3.2 KB
atarikbd.txt -rw-r--r-- 25.5 KB
bcm5974.txt -rw-r--r-- 2.2 KB
cd32.txt -rw-r--r-- 535 bytes
cma3000_d0x.txt -rw-r--r-- 2.8 KB
cs461x.txt -rw-r--r-- 2.1 KB
edt-ft5x06.txt -rw-r--r-- 2.1 KB
elantech.txt -rw-r--r-- 22.4 KB
event-codes.txt -rw-r--r-- 14.2 KB
ff.txt -rw-r--r-- 7.4 KB
gamepad.txt -rw-r--r-- 7.4 KB
gameport-programming.txt -rw-r--r-- 5.8 KB
gpio-tilt.txt -rw-r--r-- 2.5 KB
iforce-protocol.txt -rw-r--r-- 7.5 KB
input-programming.txt -rw-r--r-- 10.2 KB
input.txt -rw-r--r-- 10.9 KB
interactive.fig -rw-r--r-- 1.4 KB
joystick-api.txt -rw-r--r-- 9.3 KB
joystick-parport.txt -rw-r--r-- 19.5 KB
joystick.txt -rw-r--r-- 20.1 KB
multi-touch-protocol.txt -rw-r--r-- 16.8 KB
notifier.txt -rw-r--r-- 1.7 KB
ntrig.txt -rw-r--r-- 5.4 KB
rotary-encoder.txt -rw-r--r-- 4.0 KB
sentelic.txt -rw-r--r-- 33.2 KB
shape.fig -rw-r--r-- 1.9 KB
userio.txt -rw-r--r-- 2.9 KB
walkera0701.txt -rw-r--r-- 3.8 KB
xpad.txt -rw-r--r-- 8.3 KB
yealink.txt -rw-r--r-- 6.1 KB

back to top