Message ID | alpine.LRH.2.11.1801222257140.24301@mail.ewheeler.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
========================================================== diff --git a/drivers/md/bcache/request.c b/drivers/md/bcache/request.c index e9fbf2b..3dcc4c1 100644 --- a/drivers/md/bcache/request.c +++ b/drivers/md/bcache/request.c @@ -631,8 +631,10 @@ static void search_free(struct closure *cl) struct search *s = container_of(cl, struct search, cl); bio_complete(s); - if (s->iop.bio) + if (s->iop.bio) { bio_put(s->iop.bio); + s->iop.bio = NULL; + } closure_debug_destroy(cl); mempool_free(s, s->d->c->search);