diff options
Diffstat (limited to 'sys/i386/linux/linux_ioctl.c')
-rw-r--r-- | sys/i386/linux/linux_ioctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/linux/linux_ioctl.c b/sys/i386/linux/linux_ioctl.c index 9af33a9..3b4efd9 100644 --- a/sys/i386/linux/linux_ioctl.c +++ b/sys/i386/linux/linux_ioctl.c @@ -25,7 +25,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: linux_ioctl.c,v 1.30 1998/11/12 00:42:08 jkh Exp $ + * $Id: linux_ioctl.c,v 1.31 1999/04/29 04:37:57 luoqi Exp $ */ #include <sys/param.h> @@ -732,7 +732,8 @@ linux_ioctl(struct proc *p, struct linux_ioctl_args *args) case LINUX_TIOCGETD: bsd_line = TTYDISC; - if (error =(*func)(fp, TIOCSETD, (caddr_t)&bsd_line, p)) + error =(*func)(fp, TIOCSETD, (caddr_t)&bsd_line, p); + if (error) return error; switch (bsd_line) { case TTYDISC: |