Thread (47 messages) 47 messages, 5 authors, 2023-03-31

Re: [PATCH 15/19] md: check for failure when adding pages in alloc_behind_master_bio

From: Damien Le Moal <hidden>
Date: 2023-03-29 23:38:24
Also in: dm-devel, linux-block, linux-btrfs, linux-fsdevel, linux-mm

On 3/30/23 02:06, Johannes Thumshirn wrote:
alloc_behind_master_bio() can possibly add multiple pages to a bio, but it
is not checking for the return value of bio_add_page() if adding really
succeeded.

Check if the page adding succeeded and if not bail out.

Signed-off-by: Johannes Thumshirn <redacted>
Reviewed-by: Damien Le Moal <redacted>

-- 
Damien Le Moal
Western Digital Research
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help