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)
committerJens Axboe <axboe@kernel.dk>
Thu, 26 Jul 2018 17:52:33 +0000 (11:52 -0600)
commit9362dd1109f87a9d0a798fbc890cb339c171ed35
tree1cbf83057e024072940a67290c1f15ecc64e8bc4
parentb403ea2404889e1227812fa9657667a1deb9c694
blkdev: __blkdev_direct_IO_simple: fix leak in error case

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>
fs/block_dev.c