Commit fa4eff44 authored by Andrey Utkin's avatar Andrey Utkin Committed by David S. Miller

net/rxrpc/ar-key.c: drop negativity check on unsigned value

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80611Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarAndrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a8138f42
...@@ -346,7 +346,7 @@ static int rxrpc_krb5_decode_tagged_array(struct krb5_tagged_data **_td, ...@@ -346,7 +346,7 @@ static int rxrpc_krb5_decode_tagged_array(struct krb5_tagged_data **_td,
n_elem = ntohl(*xdr++); n_elem = ntohl(*xdr++);
toklen -= 4; toklen -= 4;
if (n_elem < 0 || n_elem > max_n_elem) if (n_elem > max_n_elem)
return -EINVAL; return -EINVAL;
*_n_elem = n_elem; *_n_elem = n_elem;
if (n_elem > 0) { if (n_elem > 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment