]> git.baikalelectronics.ru Git - kernel.git/commit
udp6: fix encap return code for resubmitting
authorPaolo Abeni <pabeni@redhat.com>
Wed, 17 Oct 2018 09:44:04 +0000 (11:44 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Oct 2018 05:26:53 +0000 (22:26 -0700)
commit9f3643d55549516369eab44b0dc7657b73563e63
tree2762dbbeef8ffd2fdde75889b5a77c277879afc2
parentcfd9bf2aace97ed76d5bf85402fa4756e4f09be0
udp6: fix encap return code for resubmitting

The commit 95c71865c844 ("udp6: add missing checks on edumux packet
processing") used the same return code convention of the ipv4 counterpart,
but ipv6 uses the opposite one: positive values means resubmit.

This change addresses the issue, using positive return value for
resubmitting. Also update the related comment, which was broken, too.

Fixes: 95c71865c844 ("udp6: add missing checks on edumux packet processing")
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/udp.c