blkdev: __blkdev_direct_IO_simple: fix leak in error case
authorMartin Wilck <mwilck@suse.com>
Wed, 25 Jul 2018 21:15:08 +0000 (23:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:42 +0000 (07:50 +0200)
commitcc5d7097ba8f46a9b5382edba733e5a8705145ba
tree5aa911a77916a3e2aaf3cd88a7b20f0fcabcfc2c
parent2258351cf0865b6367a5b2b3843ec39a146bb0f8
blkdev: __blkdev_direct_IO_simple: fix leak in error case

commit 9362dd1109f87a9d0a798fbc890cb339c171ed35 upstream.

Fixes: 72ecad22d9f1 ("block: support a full bio worth of IO for simplified bdev direct-io")
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin Wilck <mwilck@suse.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/block_dev.c