summaryrefslogtreecommitdiff
path: root/libnetfs/io-duplicate.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs/io-duplicate.c')
-rw-r--r--libnetfs/io-duplicate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libnetfs/io-duplicate.c b/libnetfs/io-duplicate.c
index b2c3a3a1..263f9e81 100644
--- a/libnetfs/io-duplicate.c
+++ b/libnetfs/io-duplicate.c
@@ -34,6 +34,7 @@ netfs_S_io_duplicate (struct protid *user,
if (err)
return err;
+ refcount_ref (&user->po->refcnt);
pthread_mutex_lock (&user->po->np->lock);
newpi = netfs_make_protid (user->po, clone);
*newport = ports_get_right (newpi);