diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2008-09-27 08:51:18 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2008-09-27 08:51:18 +0000 |
| commit | 6bfa9a2d66dd0e00182017d6741d44e54d0b2cca (patch) | |
| tree | dd0035910760a440d495b23940f57a42ed24ca85 /sys/dev/ata/atapi-tape.c | |
| parent | 45cfb1dc538113eab50616b88da908b1bb728561 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
| -rw-r--r-- | sys/dev/ata/atapi-tape.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c index 8986069c1b4a..947bacf75042 100644 --- a/sys/dev/ata/atapi-tape.c +++ b/sys/dev/ata/atapi-tape.c @@ -238,7 +238,7 @@ ast_close(struct cdev *cdev, int flags, int fmt, struct thread *td) ast_write_filemark(dev, ATAPI_WF_WRITE); /* if minor is even rewind on close */ - if (!(minor(cdev) & 0x01)) + if (!(dev2unit(cdev) & 0x01)) ast_rewind(dev); if (stp->cap.lock && count_dev(cdev) == 1) |
