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
00-INDEX -rw-r--r-- 776 bytes
3270.ChangeLog -rw-r--r-- 1.8 KB
3270.txt -rw-r--r-- 10.7 KB
CommonIO -rw-r--r-- 5.0 KB
DASD -rw-r--r-- 3.3 KB
Debugging390.txt -rw-r--r-- 78.0 KB
cds.txt -rw-r--r-- 20.5 KB
config3270.sh -rw-r--r-- 2.0 KB
driver-model.txt -rw-r--r-- 9.8 KB
monreader.txt -rw-r--r-- 8.4 KB
qeth.txt -rw-r--r-- 1.9 KB
s390dbf.txt -rw-r--r-- 23.6 KB
zfcpdump.txt -rw-r--r-- 2.3 KB

back to top