projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8138f4
)
net/rxrpc/ar-key.c: drop negativity check on unsigned value
author
Andrey Utkin
<andrey.krieger.utkin@gmail.com>
Fri, 18 Jul 2014 15:31:57 +0000
(18:31 +0300)
committer
David S. Miller
<davem@davemloft.net>
Mon, 21 Jul 2014 04:25:56 +0000
(21:25 -0700)
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>
net/rxrpc/ar-key.c
patch
|
blob
|
blame
|
history
diff --git
a/net/rxrpc/ar-key.c
b/net/rxrpc/ar-key.c
index 0ad080790a32a341a1ddc57d632302563964a247..eec998efd02060630d7f550c77741aa65283434c 100644
(file)
--- 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,
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) {