projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19982ba
)
NFS: Fix decode_secinfo_maxsz
author
Bryan Schumaker
<
[email protected]
>
Thu, 2 Jun 2011 19:07:35 +0000
(15:07 -0400)
committer
Trond Myklebust
<
[email protected]
>
Tue, 21 Jun 2011 15:54:07 +0000
(11:54 -0400)
I initially did the calculation in bytes, and not words
Signed-off-by: Bryan Schumaker <
[email protected]
>
Signed-off-by: Trond Myklebust <
[email protected]
>
fs/nfs/nfs4xdr.c
patch
|
blob
|
history
diff --git
a/fs/nfs/nfs4xdr.c
b/fs/nfs/nfs4xdr.c
index 5db44a8dddf9643545ee713dec4e8ee58637b22d..6870bc61ceec4083f80818c4a31f934dab3227b1 100644
(file)
--- a/
fs/nfs/nfs4xdr.c
+++ b/
fs/nfs/nfs4xdr.c
@@
-255,7
+255,7
@@
static int nfs4_stat_to_errno(int);
#define decode_fs_locations_maxsz \
(0)
#define encode_secinfo_maxsz (op_encode_hdr_maxsz + nfs4_name_maxsz)
-#define decode_secinfo_maxsz (op_decode_hdr_maxsz +
4 + (NFS_MAX_SECFLAVORS * (16 + GSS_OID_MAX_LEN)
))
+#define decode_secinfo_maxsz (op_decode_hdr_maxsz +
1 + ((NFS_MAX_SECFLAVORS * (16 + GSS_OID_MAX_LEN)) / 4
))
#if defined(CONFIG_NFS_V4_1)
#define NFS4_MAX_MACHINE_NAME_LEN (64)