diff options
Diffstat (limited to 'sys/dev/ida/ida_disk.c')
-rw-r--r-- | sys/dev/ida/ida_disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c index c0bf915..ee1c157 100644 --- a/sys/dev/ida/ida_disk.c +++ b/sys/dev/ida/ida_disk.c @@ -163,7 +163,7 @@ idstrategy(struct buf *bp) /* * software write protect check */ - if (drv->flags & DRV_WRITEPROT && (bp->b_flags & B_READ) == 0) { + if (drv->flags & DRV_WRITEPROT && (bp->b_iocmd == BIO_WRITE)) { bp->b_error = EROFS; goto bad; } |