summaryrefslogtreecommitdiffstats
path: root/sound/core/jack.c
diff options
context:
space:
mode:
authorColy Li2019-06-28 13:59:26 +0200
committerJens Axboe2019-06-28 15:39:14 +0200
commit0ae49cb7aa005ed18fe8f4d6ccf73019b78ac7b2 (patch)
tree0d52cb5f20121674c63421d43cb8028831c301af /sound/core/jack.c
parentbcache: check c->gc_thread by IS_ERR_OR_NULL in cache_set_flush() (diff)
downloadkernel-qcow2-linux-0ae49cb7aa005ed18fe8f4d6ccf73019b78ac7b2.tar.gz
kernel-qcow2-linux-0ae49cb7aa005ed18fe8f4d6ccf73019b78ac7b2.tar.xz
kernel-qcow2-linux-0ae49cb7aa005ed18fe8f4d6ccf73019b78ac7b2.zip
bcache: fix return value error in bch_journal_read()
When everything is OK in bch_journal_read(), finally the return value is returned by, return ret; which assumes ret will be 0 here. This assumption is wrong when all journal buckets as are full and filled with valid journal entries. In such cache the last location referencess read_bucket() sets 'ret' to 1, which means new jset added into jset list. The jset list is list 'journal' in caller run_cache_set(). Return 1 to run_cache_set() means something wrong and the cache set won't start, but indeed everything is OK. This patch changes the line at end of bch_journal_read() to directly return 0 since everything if verything is good. Then a bogus error is fixed. Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'sound/core/jack.c')
0 files changed, 0 insertions, 0 deletions