net: dsa: add error handling for pskb_trim_rcsum
authorZhouyang Jia <jiazhouyang09@gmail.com>
Mon, 11 Jun 2018 05:26:35 +0000 (13:26 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Jun 2018 21:19:38 +0000 (14:19 -0700)
commit349b71d6f427ff8211adf50839dbbff3f27c1805
tree24010909255d60d05630e0fa5c949c5d628ebd63
parent0975764684487bf3f7a47eef009e750ea41bd514
net: dsa: add error handling for pskb_trim_rcsum

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@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/tag_trailer.c