block: Fix potential page reference leak in __bio_iov_append_get_pages()
Friendly ping :)
Quoted 12 lines
When
bio_add_hw_page()failed, we left page reference still held in pages fromiov_iter_get_pages(). Release these references and also advance theiov_iteraccording to what we have done successfully yet.Fixes 0512a75b98f8 ("block: Introduce REQ_OP_ZONE_APPEND")Reviewed-by Johannes Thumshirn <[email protected]>Signed-off-by Miaohe Lin <[email protected]>--- block/bio.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-)block/bio.c +0
-1--- a/block/bio.c