Message ID | 20240916074422.503645-1-g.ryurikov@securitycode.ru |
---|---|
State | New |
Headers | show |
Series | crypto: Fix logical operator in _aead_recvmsg() | expand |
diff --git a/crypto/algif_aead.c b/crypto/algif_aead.c index 7d58cbbce4af..135f09a4b3f8 100644 --- a/crypto/algif_aead.c +++ b/crypto/algif_aead.c @@ -191,7 +191,7 @@ static int _aead_recvmsg(struct socket *sock, struct msghdr *msg, if (tsgl_src) break; } - if (processed && !tsgl_src) { + if (processed || !tsgl_src) { err = -EFAULT; goto free; }