kernel_optimize_test/drivers/md/bcache
Coly Li 29cda393bc bcache: properly initialize 'path' and 'err' in register_bcache()
Patch "bcache: rework error unwinding in register_bcache" from
Christoph Hellwig changes the local variables 'path' and 'err'
in undefined initial state. If the code in register_bcache() jumps
to label 'out:' or 'out_module_put:' by goto, these two variables
might be reference with undefined value by the following line,

	out_module_put:
	        module_put(THIS_MODULE);
	out:
	        pr_info("error %s: %s", path, err);
	        return ret;

Therefore this patch initializes these two local variables properly
in register_bcache() to avoid such issue.

Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-01-23 11:40:01 -07:00
..
alloc.c bcache: fix deadlock in bcache_allocator 2019-11-13 15:42:50 -07:00
bcache.h bcache: add idle_max_writeback_rate sysfs interface 2019-11-13 15:42:50 -07:00
bset.c bcache: don't export symbols 2019-11-13 15:42:51 -07:00
bset.h bcache: fix stack corruption by PRECEDING_KEY() 2019-06-13 03:09:14 -06:00
btree.c Revert "bcache: fix fifo index swapping condition in journal_pin_cmp()" 2019-11-18 08:35:47 -07:00
btree.h bcache: fix race in btree_flush_write() 2019-06-28 07:39:18 -06:00
closure.c bcache: don't export symbols 2019-11-13 15:42:51 -07:00
closure.h
debug.c bcache: Fix an error code in bch_dump_read() 2019-09-03 08:08:29 -06:00
debug.h
extents.c bcache: treat stale && dirty keys as bad keys 2019-02-09 07:18:31 -07:00
extents.h
io.c bcache: ignore read-ahead request failure on backing device 2019-06-28 07:39:14 -06:00
journal.c bcache: add reclaimed_journal_buckets to struct cache_set 2019-06-28 07:39:18 -06:00
journal.h Revert "bcache: fix fifo index swapping condition in journal_pin_cmp()" 2019-11-18 08:35:47 -07:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile bcache: remove the extra cflags for request.o 2019-11-13 15:42:50 -07:00
movinggc.c
request.c bcache: deleted code comments for dead code in bch_data_insert_keys() 2019-11-13 15:42:50 -07:00
request.h bcache: Clean up bch_get_congested() 2019-04-24 10:56:27 -06:00
stats.c bcache: not use hard coded memset size in bch_cache_accounting_clear() 2019-02-09 07:18:31 -07:00
stats.h
super.c bcache: properly initialize 'path' and 'err' in register_bcache() 2020-01-23 11:40:01 -07:00
sysfs.c bcache: add idle_max_writeback_rate sysfs interface 2019-11-13 15:42:50 -07:00
sysfs.h bcache: add sysfs_strtoul_bool() for setting bit-field variables 2019-02-09 07:18:32 -07:00
trace.c
util.c bcache: avoid to use bio_for_each_segment_all() in bch_bio_alloc_pages() 2019-02-15 08:40:11 -07:00
util.h bcache: Revert "bcache: fix high CPU occupancy during journal" 2019-06-28 07:39:17 -06:00
writeback.c bcache: add idle_max_writeback_rate sysfs interface 2019-11-13 15:42:50 -07:00
writeback.h bcache: never writeback a discard operation 2019-02-09 07:18:31 -07:00