From 94073f1fd9a8f25bfa32c64e70ed58496e754344 Mon Sep 17 00:00:00 2001 From: nisimura Date: Thu, 26 Aug 1999 06:37:42 +0000 Subject: [PATCH] One more ioctl() fix. Most of WSDISPLAYIO_xxx were never been called when no wsmux device is installed. --- sys/dev/wscons/wsmux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/wscons/wsmux.c b/sys/dev/wscons/wsmux.c index 5108787102bd..f31c8c7f2977 100644 --- a/sys/dev/wscons/wsmux.c +++ b/sys/dev/wscons/wsmux.c @@ -1,4 +1,4 @@ -/* $NetBSD: wsmux.c,v 1.5 1999/08/25 21:05:21 augustss Exp $ */ +/* $NetBSD: wsmux.c,v 1.6 1999/08/26 06:37:42 nisimura Exp $ */ /* * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -652,7 +652,7 @@ wsmux_displayioctl(dv, cmd, data, flag, p) #endif /* Return 0 if any of the ioctl() succeeds, otherwise the last error */ - error = 0; + error = -1; ok = 0; for (m = LIST_FIRST(&sc->sc_reals); m; m = LIST_NEXT(m, next)) { DPRINTF(("wsmux_displayioctl: m=%p sc=%p sc_muxp=%p\n",