Mercurial > illumos > illumos-gate
changeset 9957:8769ec0debbf
6782730 flushq panic-ed due to async_ttycommon.t_writeq is null from async_softint
author | An Bui <An.Bui@Sun.COM> |
---|---|
date | Tue, 23 Jun 2009 17:42:42 -0700 |
parents | 1705cb23ec4b |
children | 108c82b6bad3 |
files | usr/src/uts/sun4/io/su_driver.c |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/uts/sun4/io/su_driver.c Tue Jun 23 23:08:42 2009 +0100 +++ b/usr/src/uts/sun4/io/su_driver.c Tue Jun 23 17:42:42 2009 -0700 @@ -23,7 +23,7 @@ /* All Rights Reserved */ /* - * Copyright 2008 Sun Microsystems, Inc. All rights reserved. + * Copyright 2009 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -2155,7 +2155,9 @@ OUTB(MCR, (val & ~DTR)); flushflag = (async->async_flags & ASYNC_CLOSING) ? FLUSHALL : FLUSHDATA; - flushq(tp->t_writeq, flushflag); + if (tp->t_writeq != NULL) { + flushq(tp->t_writeq, flushflag); + } if (async->async_xmitblk != NULL) { freeb(async->async_xmitblk); async->async_xmitblk = NULL;