diff options
Diffstat (limited to 'block/blk-core.c')
-rw-r--r-- | block/blk-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-core.c b/block/blk-core.c index 95c493511be7..b776cc90a4e7 100644 --- a/block/blk-core.c +++ b/block/blk-core.c | |||
@@ -2807,7 +2807,7 @@ int blk_rq_prep_clone(struct request *rq, struct request *rq_src, | |||
2807 | 2807 | ||
2808 | free_and_out: | 2808 | free_and_out: |
2809 | if (bio) | 2809 | if (bio) |
2810 | bio_free(bio, bs); | 2810 | bio_put(bio); |
2811 | blk_rq_unprep_clone(rq); | 2811 | blk_rq_unprep_clone(rq); |
2812 | 2812 | ||
2813 | return -ENOMEM; | 2813 | return -ENOMEM; |