In case of an error, return an error. Otherwise the worst case was

that dostatvfs() wrote to a recently deceased struct mount.
This commit is contained in:
pooka 2006-12-07 22:06:02 +00:00
parent 24f1ec09dc
commit 2911d34706
1 changed files with 3 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: puffs_vfsops.c,v 1.13 2006/12/01 12:48:31 pooka Exp $ */ /* $NetBSD: puffs_vfsops.c,v 1.14 2006/12/07 22:06:02 pooka Exp $ */
/* /*
* Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved. * Copyright (c) 2005, 2006 Antti Kantee. All Rights Reserved.
@ -33,7 +33,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.13 2006/12/01 12:48:31 pooka Exp $"); __KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.14 2006/12/07 22:06:02 pooka Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/mount.h> #include <sys/mount.h>
@ -366,8 +366,7 @@ puffs_statvfs(struct mount *mp, struct statvfs *sbp, struct lwp *l)
} }
FREE(statvfs_arg, M_PUFFS); FREE(statvfs_arg, M_PUFFS);
return error;
return 0;
} }
int int