mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
Add KASSERT for bio_cmd validity here as well. Various hacks still
bypass specfs.
This commit is contained in:
parent
a959270a4b
commit
b630d83f28
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106300
|
@ -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 a new issue