diff --git a/drivers/md/bcache/super.c b/drivers/md/bcache/super.c index 14336fd5410203614ab2deb3aba01e8fbaf7f314..85569bd253b2c000c31d1f564fae7513985bca77 100644 --- a/drivers/md/bcache/super.c +++ b/drivers/md/bcache/super.c @@ -1750,7 +1750,7 @@ static void cache_set_flush(struct closure *cl) if (!IS_ERR_OR_NULL(c->gc_thread)) kthread_stop(c->gc_thread); - if (!IS_ERR(c->root)) + if (!IS_ERR_OR_NULL(c->root)) list_add(&c->root->list, &c->btree_cache); /*