Skip to contentSkip to conversation

block: Fix potential page reference leak in __bio_iov_append_get_pages()

PATCH linmiaohe 1 participant 1 message Sep 9, 2020 Block layer

lore
Share & tools
lore

linmiaohe

author
#0 lore raw
Quoted 5 lines · Johannes Thumshirn
Quoted 1 line · Miaohe Lin

When bio_add_hw_page() failed, we left page reference still held in pages.

I'd add "from iov_iter_get_pages()" to the above sentence.

Sounds good. Will add it in v2.

Quoted 2 lines

Otherwise

Many Thanks for review.