Use the queue of the tty not garbage from the stack (Paul Goyette)

This commit is contained in:
christos 2012-08-17 16:14:31 +00:00
parent 22e68bd7da
commit 33b27c368d

View File

@ -1,4 +1,4 @@
/* $NetBSD: tty.c,v 1.251 2012/08/12 14:45:44 christos Exp $ */
/* $NetBSD: tty.c,v 1.252 2012/08/17 16:14:31 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@ -63,7 +63,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.251 2012/08/12 14:45:44 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: tty.c,v 1.252 2012/08/17 16:14:31 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -230,7 +230,7 @@ tty_set_qsize(struct tty *tp, int newsize)
struct clist rawq, canq, outq;
struct clist orawq, ocanq, ooutq;
if (outq.c_cc != 0)
if (tp->t_outq.c_cc != 0)
return EBUSY;
clalloc(&rawq, newsize, 1);