summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorOlga Kornievskaia <kolga@netapp.com>2017-07-06 09:43:02 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2017-07-13 16:00:14 -0400
commit1ee48bdd22440c0b45f215fc41e16032383c1c81 (patch)
treecd50bf1764c3d5c6d1fef0a580c18dd66a24c03b /fs/nfs
parent6afafa7799cf6fa3c0efb6887704506d21965ad6 (diff)
downloadop-kernel-dev-1ee48bdd22440c0b45f215fc41e16032383c1c81.zip
op-kernel-dev-1ee48bdd22440c0b45f215fc41e16032383c1c81.tar.gz
NFSv4.2 fix size storage for nfs42_proc_copy
Return size of COPY is u64 but it was assigned to an "int" status. Signed-off-by: Olga Kornievskaia <kolga@netapp.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/nfs42proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/nfs42proc.c b/fs/nfs/nfs42proc.c
index 319a47d..6c2db51 100644
--- a/fs/nfs/nfs42proc.c
+++ b/fs/nfs/nfs42proc.c
@@ -146,7 +146,7 @@ static ssize_t _nfs42_proc_copy(struct file *src,
loff_t pos_src = args->src_pos;
loff_t pos_dst = args->dst_pos;
size_t count = args->count;
- int status;
+ ssize_t status;
status = nfs4_set_rw_stateid(&args->src_stateid, src_lock->open_context,
src_lock, FMODE_READ);
OpenPOWER on IntegriCloud