net: erspan: fix wrong return value
authorWilliam Tu <u9012063@gmail.com>
Fri, 15 Dec 2017 22:27:43 +0000 (14:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Dec 2017 20:11:25 +0000 (15:11 -0500)
commitae3e13373b879670d873e5657a903bd208f0dc40
tree90eaf8a48762d72aef82758d5961159a042e14af
parent814a17841325643e2d08984d076f976a0b423872
net: erspan: fix wrong return value

If pskb_may_pull return failed, return PACKET_REJECT
instead of -ENOMEM.

Fixes: 94d7d8f29287 ("ip6_gre: add erspan v2 support")
Fixes: f551c91de262 ("net: erspan: introduce erspan v2 for ip_gre")
Signed-off-by: William Tu <u9012063@gmail.com>
Cc: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c
net/ipv6/ip6_gre.c