diff options
-rw-r--r-- | sys/dev/usb/umass.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/umass.c b/sys/dev/usb/umass.c index 734cff93434..4904a226f92 100644 --- a/sys/dev/usb/umass.c +++ b/sys/dev/usb/umass.c @@ -1,4 +1,4 @@ -/* $OpenBSD: umass.c,v 1.31 2004/07/21 07:48:04 dlg Exp $ */ +/* $OpenBSD: umass.c,v 1.32 2004/07/21 07:49:07 dlg Exp $ */ /* $NetBSD: umass.c,v 1.98 2003/09/08 19:30:59 mycroft Exp $ */ /*- * Copyright (c) 1999 MAEKAWA Masahide <bishop@rr.iij4u.or.jp>, @@ -849,6 +849,9 @@ umass_bbb_transfer(struct umass_softc *sc, int lun, void *cmd, int cmdlen, ("sc->sc_wire == 0x%02x wrong for umass_bbb_transfer\n", sc->sc_wire)); + if (sc->sc_dying) + return; + /* Be a little generous. */ sc->timeout = timeout + USBD_DEFAULT_TIMEOUT; |