You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
net/tls: Fix flipped sign in async_wait.err assignment
commit1d9d6fd21aupstream. sk->sk_err contains a positive number, yet async_wait.err wants the opposite. Fix the missed sign flip, which Jakub caught by inspection. Fixes:a42055e8d2("net/tls: Add support for async encryption of records for performance") Suggested-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Daniel Jordan <daniel.m.jordan@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
44e8c93e1e
commit
58722323d4
@@ -459,7 +459,7 @@ static void tls_encrypt_done(struct crypto_async_request *req, int err)
|
||||
|
||||
/* If err is already set on socket, return the same code */
|
||||
if (sk->sk_err) {
|
||||
ctx->async_wait.err = sk->sk_err;
|
||||
ctx->async_wait.err = -sk->sk_err;
|
||||
} else {
|
||||
ctx->async_wait.err = err;
|
||||
tls_err_abort(sk, err);
|
||||
|
||||
Reference in New Issue
Block a user