diff options
author | Nick Bowler <nbowler@elliptictech.com> | 2011-11-08 12:12:44 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-09 15:55:53 -0500 |
commit | 069294e813ed5f27f82613b027609bcda5f1b914 (patch) | |
tree | 4c6254008c1fc04e09b48c618e30622e5aeefc0a /block/bsg.c | |
parent | fecc73519439361eab21fb3cebec504672ef0e03 (diff) | |
download | linux-3.10-069294e813ed5f27f82613b027609bcda5f1b914.tar.gz linux-3.10-069294e813ed5f27f82613b027609bcda5f1b914.tar.bz2 linux-3.10-069294e813ed5f27f82613b027609bcda5f1b914.zip |
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>
Diffstat (limited to 'block/bsg.c')
0 files changed, 0 insertions, 0 deletions