git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nfsd: nfsd should drop CAP_MKNOD for non-root
[safe/jmp/linux-2.6]
/
crypto
/
ansi_cprng.c
diff --git
a/crypto/ansi_cprng.c
b/crypto/ansi_cprng.c
index
1b3b1da
..
0fac8ff
100644
(file)
--- a/
crypto/ansi_cprng.c
+++ b/
crypto/ansi_cprng.c
@@
-161,7
+161,7
@@
static int _get_more_prng_bytes(struct prng_context *ctx)
/*
* Now update our DT value
*/
- for (i =
0; i < DEFAULT_BLK_SZ; i++
) {
+ for (i =
DEFAULT_BLK_SZ - 1; i >= 0; i--
) {
ctx->DT[i] += 1;
if (ctx->DT[i] != 0)
break;