diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-08-12 01:24:26 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-08-12 01:24:26 +0000 |
commit | 72f5246f785a7c36527124e3037e0800d9dd1282 (patch) | |
tree | a5fbd94df8c7ca97cd7b4a8761599ef146b1555e | |
parent | d6f287a5ac20705b577c71c0fa35d61660e3de7c (diff) | |
download | FreeBSD-src-72f5246f785a7c36527124e3037e0800d9dd1282.zip FreeBSD-src-72f5246f785a7c36527124e3037e0800d9dd1282.tar.gz |
Another fix that wasn't pulled in from the MAC branch: the
struct mount is not cached as *mp at this point, so use
vp->v_mount directly, following the check that it's non-NULL.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
-rw-r--r-- | sys/compat/linux/linux_stats.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_stats.c b/sys/compat/linux/linux_stats.c index 5ceb22a..e99bc67 100644 --- a/sys/compat/linux/linux_stats.c +++ b/sys/compat/linux/linux_stats.c @@ -360,7 +360,8 @@ linux_ustat(struct thread *td, struct linux_ustat_args *args) if (vp->v_mount == NULL) return (EINVAL); #ifdef MAC - error = mac_check_mount_stat(td->td_proc->p_ucred, mp); + error = mac_check_mount_stat(td->td_proc->p_ucred, + vp->v_mount); if (error) return (error); #endif |