diff options
Diffstat (limited to 'fs/block_dev.c')
-rw-r--r-- | fs/block_dev.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 2c5f08696fff..a7df151f8aba 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -264,7 +264,10 @@ __blkdev_direct_IO_simple(struct kiocb *iocb, struct iov_iter *iter, kfree(vecs); if (unlikely(bio.bi_status)) - return blk_status_to_errno(bio.bi_status); + ret = blk_status_to_errno(bio.bi_status); + + bio_uninit(&bio); + return ret; } |