From 725f4b108d54dcf84ee8bb30dfb223cbcce989cc Mon Sep 17 00:00:00 2001 From: Ka Ho Ng Date: Mon, 22 Dec 2025 00:52:56 +0000 Subject: [PATCH] geom(9): unset the BIO_ERROR_COMPAT flag correctly Fixes: 112c453ba910 Approved by: re (cperciva) --- sys/kern/vfs_bio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index c02aa30fb03..dc90bd3add2 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -4479,7 +4479,7 @@ biodone(struct bio *bp) bp->bio_error = bp->bio_error_compat; bp->bio_flags |= BIO_ERROR; bp->bio_error_compat = 0; - bp->bio_flags &= BIO_ERROR_COMPAT; + bp->bio_flags &= ~BIO_ERROR_COMPAT; } /* @@ -4524,7 +4524,7 @@ biodone(struct bio *bp) } done(bp); bp->bio_error_compat = 0; - bp->bio_flags &= BIO_ERROR_COMPAT; + bp->bio_flags &= ~BIO_ERROR_COMPAT; } }