diff options
author | Tor Egge <tegge@FreeBSD.org> | 2006-09-20 00:32:07 +0000 |
---|---|---|
committer | Tor Egge <tegge@FreeBSD.org> | 2006-09-20 00:32:07 +0000 |
commit | 4e59868e080ec927092911aaa385f263c51d1c3e (patch) | |
tree | 2d8714f6f790d8ea6ce4b988a3c3c6dd5f8ca254 /sys/kern/vfs_extattr.c | |
parent | 60b0b1aa18ca08bc1518625fdc548009fa5bf21b (diff) | |
download | src-4e59868e080ec927092911aaa385f263c51d1c3e.tar.gz src-4e59868e080ec927092911aaa385f263c51d1c3e.zip |
Notes
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r-- | sys/kern/vfs_extattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index d7bcf977f8c6..c70533184591 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -4330,11 +4330,11 @@ kern_fhstatfs(struct thread *td, fhandle_t fh, struct statfs *buf) sp->f_namemax = NAME_MAX; sp->f_flags = mp->mnt_flag & MNT_VISFLAGMASK; error = VFS_STATFS(mp, sp, td); + if (error == 0) + *buf = *sp; out: vfs_rel(mp); VFS_UNLOCK_GIANT(vfslocked); - if (sp) - *buf = *sp; return (error); } |