From: Kent Overstreet Date: Tue, 18 Jun 2019 23:37:39 +0000 (-0400) Subject: bcachefs: fix kasan splat X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f707e3d8f41e77aff94941168ab30da2314a5984;p=linux.git bcachefs: fix kasan splat Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/recovery.c b/fs/bcachefs/recovery.c index dc9222b1a196d..2b7133e376e3d 100644 --- a/fs/bcachefs/recovery.c +++ b/fs/bcachefs/recovery.c @@ -721,10 +721,12 @@ int bch2_fs_recovery(struct bch_fs *c) ret = bch2_blacklist_table_initialize(c); - ret = verify_journal_entries_not_blacklisted_or_missing(c, - &journal_entries); - if (ret) - goto err; + if (!list_empty(&journal_entries)) { + ret = verify_journal_entries_not_blacklisted_or_missing(c, + &journal_entries); + if (ret) + goto err; + } ret = bch2_fs_journal_start(&c->journal, journal_seq, &journal_entries);