summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_rman.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1999-06-26 10:27:30 +0000
committerdfr <dfr@FreeBSD.org>1999-06-26 10:27:30 +0000
commitf1511ed53d93ea728a5d6220ab363e4a7f7522a7 (patch)
treeb87a6fcdcfb84c129399f88c602c316064a3c10f /sys/kern/subr_rman.c
parentf1f4d770fd09e566d32f451220a780e147629281 (diff)
downloadFreeBSD-src-f1511ed53d93ea728a5d6220ab363e4a7f7522a7.zip
FreeBSD-src-f1511ed53d93ea728a5d6220ab363e4a7f7522a7.tar.gz
Make sure that we record the flags in all cases.
Submitted by: Bernd Walter <ticso@cicely.de> PR: kern/12399
Diffstat (limited to 'sys/kern/subr_rman.c')
-rw-r--r--sys/kern/subr_rman.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_rman.c b/sys/kern/subr_rman.c
index a043230..609937e 100644
--- a/sys/kern/subr_rman.c
+++ b/sys/kern/subr_rman.c
@@ -26,7 +26,7 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: subr_rman.c,v 1.6 1999/04/11 02:27:06 eivind Exp $
+ * $Id: subr_rman.c,v 1.7 1999/04/16 21:22:39 peter Exp $
*/
/*
@@ -244,7 +244,7 @@ rman_reserve_resource(struct rman *rm, u_long start, u_long end, u_long count,
printf("candidate region is entire chunk\n");
#endif /* RMAN_DEBUG */
rv = s;
- rv->r_flags |= RF_ALLOCATED;
+ rv->r_flags |= RF_ALLOCATED | flags;
rv->r_dev = dev;
goto out;
}
OpenPOWER on IntegriCloud