summaryrefslogtreecommitdiffstats
path: root/xlators/nfs/server/src/nfs3-helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'xlators/nfs/server/src/nfs3-helpers.c')
-rw-r--r--xlators/nfs/server/src/nfs3-helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/nfs/server/src/nfs3-helpers.c b/xlators/nfs/server/src/nfs3-helpers.c
index 2e0274624de..15953438a72 100644
--- a/xlators/nfs/server/src/nfs3-helpers.c
+++ b/xlators/nfs/server/src/nfs3-helpers.c
@@ -100,11 +100,11 @@ nfs3_iatt_gfid_to_ino (struct iatt *buf)
return 0;
if (buf->ia_ino != 1)
- memcpy (&buf->ia_ino, &buf->ia_gfid[8], sizeof (uint64_t));
+ memcpy (&ino, &buf->ia_gfid[8], sizeof (uint64_t));
else
ino = 1;
- return buf->ia_ino;
+ return ino;
}