diff options
| author | Scott Long <scottl@FreeBSD.org> | 2020-02-07 09:22:08 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2020-02-07 09:22:08 +0000 |
| commit | d176b8039e91164cd25271ff6191a4fb1a03fe97 (patch) | |
| tree | d1382f2fb54cb240d3aeda803ae80070bf8ecf13 /sys/dev/aac | |
| parent | a2abae8dc92a5778b3405cfbc1f20eaf7a067074 (diff) | |
Notes
Diffstat (limited to 'sys/dev/aac')
| -rw-r--r-- | sys/dev/aac/aac_disk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/aac/aac_disk.c b/sys/dev/aac/aac_disk.c index 1a547ed039ab..284c1472d7ea 100644 --- a/sys/dev/aac/aac_disk.c +++ b/sys/dev/aac/aac_disk.c @@ -163,6 +163,11 @@ aac_disk_strategy(struct bio *bp) return; } + if ((bp->bio_cmd != BIO_READ) && (bp->bio_cmd != BIO_WRITE)) { + biofinish(bp, NULL, EOPNOTSUPP); + return; + } + /* perform accounting */ /* pass the bio to the controller - it can work out who we are */ |
