Re: [PATCH] net: dsa: add error handling for pskb_trim_rcsum

From: David Miller
Date: Mon Jun 11 2018 - 17:20:11 EST


From: Zhouyang Jia <jiazhouyang09@xxxxxxxxx>
Date: Mon, 11 Jun 2018 13:26:35 +0800

> When pskb_trim_rcsum fails, the lack of error-handling code may
> cause unexpected results.
>
> This patch adds error-handling code after calling pskb_trim_rcsum.
>
> Signed-off-by: Zhouyang Jia <jiazhouyang09@xxxxxxxxx>

Applied and queued up for -stable, thanks.