diff options
Diffstat (limited to 'sys/dev/scd/scd.c')
-rw-r--r-- | sys/dev/scd/scd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index b6e9460..836dbc9 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -337,7 +337,7 @@ scdstrategy(struct buf *bp) } /* read only */ - if (!(bp->b_flags & B_READ)) { + if (!(bp->b_iocmd == BIO_READ)) { bp->b_error = EROFS; goto bad; } |