summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-06-24 03:09:11 +0000
committermsmith <msmith@FreeBSD.org>1999-06-24 03:09:11 +0000
commite7aad4d0411fc35acc35206618409c8338a18772 (patch)
tree7df87e978b4de7d02117604b3171c56cb7509c86
parentf2e02ecc91d5a43c5f6717fb53cddd36b06fc05e (diff)
downloadFreeBSD-src-e7aad4d0411fc35acc35206618409c8338a18772.zip
FreeBSD-src-e7aad4d0411fc35acc35206618409c8338a18772.tar.gz
From the submitter:
wfd driver code tries to give wd driver first crack at ioctl's, but incorrectly interprets internal error and never gets to send eject to ATAPI device. (this is fixed in the atapi-fd driver) PR: kern/12218 Submitted by: Simon Walton <simonw@cinesite.com>
-rw-r--r--sys/i386/isa/wfd.c4
-rw-r--r--sys/pc98/pc98/wfd.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/i386/isa/wfd.c b/sys/i386/isa/wfd.c
index d053cb8..3030b86 100644
--- a/sys/i386/isa/wfd.c
+++ b/sys/i386/isa/wfd.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: wfd.c,v 1.24 1999/05/30 16:52:30 phk Exp $
+ * $Id: wfd.c,v 1.25 1999/05/31 11:26:38 phk Exp $
*/
/*
@@ -658,7 +658,7 @@ int wfdioctl (dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
error = dsioctl("wfd", dev, cmd, addr, flag, &t->dk_slices,
wfdstrategy1, (ds_setgeom_t *)NULL);
- if (error != -1)
+ if (error != ENOIOCTL)
return (error);
if (t->flags & F_MEDIA_CHANGED)
diff --git a/sys/pc98/pc98/wfd.c b/sys/pc98/pc98/wfd.c
index d053cb8..3030b86 100644
--- a/sys/pc98/pc98/wfd.c
+++ b/sys/pc98/pc98/wfd.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: wfd.c,v 1.24 1999/05/30 16:52:30 phk Exp $
+ * $Id: wfd.c,v 1.25 1999/05/31 11:26:38 phk Exp $
*/
/*
@@ -658,7 +658,7 @@ int wfdioctl (dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
error = dsioctl("wfd", dev, cmd, addr, flag, &t->dk_slices,
wfdstrategy1, (ds_setgeom_t *)NULL);
- if (error != -1)
+ if (error != ENOIOCTL)
return (error);
if (t->flags & F_MEDIA_CHANGED)
OpenPOWER on IntegriCloud