net:ipv6: check return value of pskb_trim()
authorYuanjun Gong <ruc_gongyuanjun@163.com>
Mon, 17 Jul 2023 14:45:19 +0000 (22:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2023 11:25:58 +0000 (12:25 +0100)
commit4258faa130be4ea43e5e2d839467da421b8ff274
treee63c87827eabd2e5d8fecd3df0421422f5e7f9f8
parentdaa751444fd9d4184270b1479d8af49aaf1a1ee6
net:ipv6: check return value of pskb_trim()

goto tx_err if an unexpected result is returned by pskb_tirm()
in ip6erspan_tunnel_xmit().

Fixes: 5a963eb61b7c ("ip6_gre: Add ERSPAN native tunnel support")
Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ip6_gre.c