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-- 436 bytes
MSI-HOWTO.txt -rw-r--r-- 22.3 KB
PCIEBUS-HOWTO.txt -rw-r--r-- 8.6 KB
pci-error-recovery.txt -rw-r--r-- 19.1 KB
pci-iov-howto.txt -rw-r--r-- 3.8 KB
pci.txt -rw-r--r-- 24.6 KB
pcieaer-howto.txt -rw-r--r-- 11.3 KB

back to top