diff options
-rw-r--r-- | libdiskfs/fsys-syncfs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libdiskfs/fsys-syncfs.c b/libdiskfs/fsys-syncfs.c index fbca52ff..2d51a872 100644 --- a/libdiskfs/fsys-syncfs.c +++ b/libdiskfs/fsys-syncfs.c @@ -27,7 +27,8 @@ diskfs_S_fsys_syncfs (fsys_t controlport, int wait, int children) { - struct port_info *pi = ports_check_port_type (controlport, PT_CTL); + struct port_info *pi = ports_lookup_port (diskfs_port_bucket, controlport, + diskfs_control_class); if (!pi) return EOPNOTSUPP; @@ -40,6 +41,7 @@ diskfs_S_fsys_syncfs (fsys_t controlport, diskfs_sync_everything (wait); diskfs_set_hypermetadata (wait, 0); + ports_port_deref (pi); return 0; } |