projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f844cd0
)
nfs: the length argument to read_buf should be unsigned
author
Jeff Layton
<jlayton@redhat.com>
Sat, 17 Sep 2016 22:17:31 +0000
(18:17 -0400)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Thu, 22 Sep 2016 17:56:04 +0000
(13:56 -0400)
Since it gets passed through to xdr_inline_decode, we might as well
have read_buf expect what it expects -- a size_t.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/callback_xdr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/callback_xdr.c
b/fs/nfs/callback_xdr.c
index 656f68f7fe53e110a33f8bb876028e6083c3db20..a710825f3d617bf8158ad344193544391f985baa 100644
(file)
--- a/
fs/nfs/callback_xdr.c
+++ b/
fs/nfs/callback_xdr.c
@@
-72,7
+72,7
@@
static int nfs4_encode_void(struct svc_rqst *rqstp, __be32 *p, void *dummy)
return xdr_ressize_check(rqstp, p);
}
-static __be32 *read_buf(struct xdr_stream *xdr,
in
t nbytes)
+static __be32 *read_buf(struct xdr_stream *xdr,
size_
t nbytes)
{
__be32 *p;