ipv4: ip_gre: fix return value check in erspan_fb_xmit()
authorYuanjun Gong <ruc_gongyuanjun@163.com>
Mon, 17 Jul 2023 14:49:02 +0000 (22:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2023 11:27:09 +0000 (12:27 +0100)
commit02d84f3eb53a5be982b17c88410fa6c58806356b
tree8e039857aa17e726581e15773c866321ec78be1c
parentbce5603365d8184734ba7e6b22e74bd2c90a7167
ipv4: ip_gre: fix return value check in erspan_fb_xmit()

goto err_free_skb if an unexpected result is returned by pskb_tirm()
in erspan_fb_xmit().

Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c