]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit78c599f3977048ba3d94ae91c68edb7e88845dbd
treecef6c8af0d596b155329b1508fe754c13894f65a
parenteeaec143b8316235a73a7fd4ab3c171a5b5bdb4d
ip_gre: fix wrong return value of erspan_rcv

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

Fixes: 47b2af5234e3 ("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