diff options
Diffstat (limited to 'sys/libkern/iconv.c')
-rw-r--r-- | sys/libkern/iconv.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/libkern/iconv.c b/sys/libkern/iconv.c index 462a2cf..cfdc28a 100644 --- a/sys/libkern/iconv.c +++ b/sys/libkern/iconv.c @@ -518,13 +518,8 @@ iconv_vfs_refcount(const char *fsname) { struct vfsconf *vfsp; - for (vfsp = vfsconf; vfsp; vfsp = vfsp->vfc_next) { - if (!strcmp(vfsp->vfc_name, fsname)) { - if (vfsp->vfc_refcount > 0) - return (EBUSY); - else - return (0); - } - } + vfsp = vfs_byname(fsname); + if (vfsp != NULL && vfsp->vfc_refcount > 0) + return (EBUSY); return (0); } |