Re: [PATCH] net: handle the return value of pskb_carve_frag_list() correctly

From: David Miller
Date: Tue Aug 18 2020 - 18:57:19 EST


From: Miaohe Lin <linmiaohe@xxxxxxxxxx>
Date: Sat, 15 Aug 2020 04:46:41 -0400

> pskb_carve_frag_list() may return -ENOMEM in pskb_carve_inside_nonlinear().
> we should handle this correctly or we would get wrong sk_buff.
>
> Fixes: 6fa01ccd8830 ("skbuff: Add pskb_extract() helper function")
> Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>

Applied, thanks.