Re: [PATCH v2] block: Fix potential page reference leak in __bio_iov_append_get_pages()

2020-09-30 Thread linmiaohe
Friendly ping :) > When bio_add_hw_page() failed, we left page reference still held in pages > from iov_iter_get_pages(). Release these references and also advance the > iov_iter according to what we have done successfully yet. > > Fixes: 0512a75b98f8 ("block: Introduce REQ_OP_ZONE_APPEND") >

[PATCH v2] block: Fix potential page reference leak in __bio_iov_append_get_pages()

2020-09-10 Thread Miaohe Lin
When bio_add_hw_page() failed, we left page reference still held in pages from iov_iter_get_pages(). Release these references and also advance the iov_iter according to what we have done successfully yet. Fixes: 0512a75b98f8 ("block: Introduce REQ_OP_ZONE_APPEND") Reviewed-by: Johannes Thumshirn