Reduce the emasculation of bounds_check_with_label() by one line, so we
propagate a bio error condition to the caller and above.
This commit is contained in:
parent
926a83f21a
commit
5c460f220d
@ -1267,8 +1267,8 @@ bounds_check_with_label(struct bio *bp, struct disklabel *lp, int wlabel)
|
||||
return(1);
|
||||
|
||||
bad:
|
||||
bp->bio_flags |= BIO_ERROR;
|
||||
#endif
|
||||
bp->bio_flags |= BIO_ERROR;
|
||||
return(-1);
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user