ip_gre: fix wrong return value of erspan_rcv
authorHaishuang Yan <yanhaishuang@cmss.chinamobile.com>
Fri, 15 Dec 2017 02:46:16 +0000 (10:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 19:10:39 +0000 (14:10 -0500)
commitc05fad5713b81b049ec6ac4eb2d304030b1efdce
treecef6c8af0d596b155329b1508fe754c13894f65a
parentc647c0d62c82eb3ddf78a0d8b3d58819d9f552aa
ip_gre: fix wrong return value of erspan_rcv

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

Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN")
Cc: William Tu <u9012063@gmail.com>
Signed-off-by: Haishuang Yan <yanhaishuang@cmss.chinamobile.com>
Acked-by: William Tu <u9012063@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_gre.c