diff --git a/sys/ufs/ext2fs/ext2fs_vfsops.c b/sys/ufs/ext2fs/ext2fs_vfsops.c index 4105201d6c22..ddad9afba560 100644 --- a/sys/ufs/ext2fs/ext2fs_vfsops.c +++ b/sys/ufs/ext2fs/ext2fs_vfsops.c @@ -1,4 +1,4 @@ -/* $NetBSD: ext2fs_vfsops.c,v 1.95 2006/02/21 04:32:39 thorpej Exp $ */ +/* $NetBSD: ext2fs_vfsops.c,v 1.96 2006/03/18 12:48:38 bouyer Exp $ */ /* * Copyright (c) 1989, 1991, 1993, 1994 @@ -65,7 +65,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.95 2006/02/21 04:32:39 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ext2fs_vfsops.c,v 1.96 2006/03/18 12:48:38 bouyer Exp $"); #if defined(_KERNEL_OPT) #include "opt_compat_netbsd.h" @@ -702,8 +702,8 @@ ext2fs_mountfs(struct vnode *devvp, struct mount *mp, struct lwp *l) return (0); out: - if (bp) - brelse(bp); + KASSERT(bp != NULL); + brelse(bp); if (ump) { free(ump->um_e2fs, M_UFSMNT); free(ump, M_UFSMNT);