projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cascardo/linux.git]
/
net
/
rxrpc
/
ar-key.c
diff --git
a/net/rxrpc/ar-key.c
b/net/rxrpc/ar-key.c
index
3907add
..
b45d080
100644
(file)
--- a/
net/rxrpc/ar-key.c
+++ b/
net/rxrpc/ar-key.c
@@
-350,7
+350,7
@@
static int rxrpc_krb5_decode_tagged_array(struct krb5_tagged_data **_td,
n_elem = ntohl(*xdr++);
toklen -= 4;
- if (n_elem
< 0 || n_elem
> max_n_elem)
+ if (n_elem > max_n_elem)
return -EINVAL;
*_n_elem = n_elem;
if (n_elem > 0) {