Jérôme Glisse a3761c3c91 block: do not leak memory in bio_copy_user_iov()
When bio_add_pc_page() fails in bio_copy_user_iov() we should free
the page we just allocated otherwise we are leaking it.

Cc: linux-block@vger.kernel.org
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: stable@vger.kernel.org
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-04-10 16:14:40 -06:00
..
2019-03-20 14:39:09 -06:00
2018-11-07 13:42:32 -07:00
2019-03-09 16:53:47 -08:00
2018-12-16 19:53:47 -07:00
2019-02-09 15:40:24 -07:00
2018-11-15 12:13:25 -07:00
2018-12-28 13:19:59 -08:00
2018-10-25 11:17:40 -06:00
2018-05-31 10:50:54 -04:00
2018-12-29 13:03:29 -08:00
2018-11-07 13:42:32 -07:00