aboutsummaryrefslogtreecommitdiffstats
path: root/net/rxrpc
diff options
context:
space:
mode:
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>2014-07-18 11:31:57 -0400
committerDavid S. Miller <davem@davemloft.net>2014-07-21 00:25:56 -0400
commitfa4eff44a65c91c9ad09e5695ba171a107e5c327 (patch)
treec78aca3f1d3a143acdb6eb3632d85b9cbcabbec3 /net/rxrpc
parenta8138f42d494bcd41a6f7ff301e12fa8d4f330f1 (diff)
net/rxrpc/ar-key.c: drop negativity check on unsigned value
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80611 Reported-by: David Binderman <dcb314@hotmail.com> Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rxrpc')
-rw-r--r--net/rxrpc/ar-key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/rxrpc/ar-key.c b/net/rxrpc/ar-key.c
index 0ad080790a32..eec998efd020 100644
--- a/net/rxrpc/ar-key.c
+++ b/net/rxrpc/ar-key.c
@@ -346,7 +346,7 @@ static int rxrpc_krb5_decode_tagged_array(struct krb5_tagged_data **_td,
346 346
347 n_elem = ntohl(*xdr++); 347 n_elem = ntohl(*xdr++);
348 toklen -= 4; 348 toklen -= 4;
349 if (n_elem < 0 || n_elem > max_n_elem) 349 if (n_elem > max_n_elem)
350 return -EINVAL; 350 return -EINVAL;
351 *_n_elem = n_elem; 351 *_n_elem = n_elem;
352 if (n_elem > 0) { 352 if (n_elem > 0) {