]> git.baikalelectronics.ru Git - kernel.git/commit
ah: Don't return NET_XMIT_DROP on input.
authorNick Bowler <nbowler@elliptictech.com>
Thu, 10 Nov 2011 09:01:27 +0000 (09:01 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 12 Nov 2011 23:13:32 +0000 (18:13 -0500)
commit2ebbefeb13ced8b8a910a0f5452339279efe9a01
tree5ac1ffcfd7208796967f4d9387d831c1d9e54ace
parent78e90997732ef401e8ee484a636ffd55749f1247
ah: Don't return NET_XMIT_DROP on input.

When the ahash driver returns -EBUSY, AH4/6 input functions return
NET_XMIT_DROP, presumably copied from the output code path.  But
returning transmit codes on input doesn't make a lot of sense.
Since NET_XMIT_DROP is a positive int, this gets interpreted as
the next header type (i.e., success).  As that can only end badly,
remove the check.

Signed-off-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ah4.c
net/ipv6/ah6.c