]> git.baikalelectronics.ru Git - kernel.git/commit
ah: Correctly pass error codes in ahash output callback.
authorNick Bowler <nbowler@elliptictech.com>
Tue, 8 Nov 2011 12:12:44 +0000 (12:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Nov 2011 20:55:53 +0000 (15:55 -0500)
commit3fd06477b1c826841c02d5755794db6a0d7c3df2
tree4c6254008c1fc04e09b48c618e30622e5aeefc0a
parent72758ff3698669130a30b5bdecdac80ee73d29b2
ah: Correctly pass error codes in ahash output callback.

The AH4/6 ahash output callbacks pass nexthdr to xfrm_output_resume
instead of the error code.  This appears to be a copy+paste error from
the input case, where nexthdr is expected.  This causes the driver to
continuously add AH headers to the datagram until either an allocation
fails and the packet is dropped or the ahash driver hits a synchronous
fallback and the resulting monstrosity is transmitted.

Correct this issue by simply passing the error code unadulterated.

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