Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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

parent a8138f42
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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) {