diff options
| -rw-r--r-- | sys/dev/vinum/vinumio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/vinum/vinumio.c b/sys/dev/vinum/vinumio.c index 0aef397d5e98..01c17047a00a 100644 --- a/sys/dev/vinum/vinumio.c +++ b/sys/dev/vinum/vinumio.c @@ -218,7 +218,7 @@ close_locked_drive(struct drive *drive) * the queues, which spec_close() will try to * do. Get rid of them here first. */ - error = (*devsw(drive->dev)->d_close) (drive->dev, 0, 0, NULL); + error = (*devsw(drive->dev)->d_close) (drive->dev, FWRITE | FREAD, 0, NULL); drive->flags &= ~VF_OPEN; /* no longer open */ if (drive->lasterror == 0) drive->lasterror = error; |
