RISCV: config: tizen_visionfive2: Enable USB_DUMMY_HCD as module for usb hcd tetst
[platform/kernel/linux-starfive.git] / block / bio.c
index 57c2f32..d5cd825 100644 (file)
@@ -747,6 +747,7 @@ void bio_put(struct bio *bio)
                bio_uninit(bio);
                cache = per_cpu_ptr(bio->bi_pool->cache, get_cpu());
                bio->bi_next = cache->free_list;
+               bio->bi_bdev = NULL;
                cache->free_list = bio;
                if (++cache->nr > ALLOC_CACHE_MAX + ALLOC_CACHE_SLACK)
                        bio_alloc_cache_prune(cache, ALLOC_CACHE_SLACK);