Add KASSERT for bio_cmd validity here as well. Various hacks still
bypass specfs.
This commit is contained in:
parent
43abbe6909
commit
72c30b5844
@ -380,6 +380,10 @@ g_dev_strategy(struct bio *bp)
|
||||
struct bio *bp2;
|
||||
dev_t dev;
|
||||
|
||||
KASSERT(bp->bio_cmd == BIO_READ ||
|
||||
bp->bio_cmd == BIO_WRITE ||
|
||||
bp->bio_cmd == BIO_DELETE,
|
||||
("Wrong bio_cmd bio=%p cmd=%d", bp, bp->bio_cmd));
|
||||
dev = bp->bio_dev;
|
||||
gp = dev->si_drv1;
|
||||
cp = dev->si_drv2;
|
||||
|
Loading…
Reference in New Issue
Block a user