Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-9116 libcfs: avoid overflow of crypto bandwidth caculation
[fs/lustre-release.git]
/
libcfs
/
libcfs
/
linux
/
linux-crypto.c
diff --git
a/libcfs/libcfs/linux/linux-crypto.c
b/libcfs/libcfs/linux/linux-crypto.c
index
a8c2ccd
..
1a0a105
100644
(file)
--- a/
libcfs/libcfs/linux/linux-crypto.c
+++ b/
libcfs/libcfs/linux/linux-crypto.c
@@
-319,7
+319,8
@@
static void cfs_crypto_performance_test(enum cfs_crypto_hash_alg hash_alg)
int buf_len = max(PAGE_SIZE, 1048576UL);
void *buf;
unsigned long start, end;
- int bcount, err = 0;
+ int err = 0;
+ unsigned long bcount;
struct page *page;
unsigned char hash[CFS_CRYPTO_HASH_DIGESTSIZE_MAX];
unsigned int hash_len = sizeof(hash);