Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Fix reversed test in umass_activate(). Probably...



details:   https://anonhg.NetBSD.org/src/rev/1323c5ccdadc
branches:  trunk
changeset: 494413:1323c5ccdadc
user:      augustss <augustss%NetBSD.org@localhost>
date:      Thu Jul 06 07:11:18 2000 +0000

description:
Fix reversed test in umass_activate().  Probably fixes PR 10520.

diffstat:

 sys/dev/usb/umass.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 87615d0854ed -r 1323c5ccdadc sys/dev/usb/umass.c
--- a/sys/dev/usb/umass.c       Thu Jul 06 04:34:26 2000 +0000
+++ b/sys/dev/usb/umass.c       Thu Jul 06 07:11:18 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: umass.c,v 1.38 2000/06/01 14:29:00 augustss Exp $      */
+/*     $NetBSD: umass.c,v 1.39 2000/07/06 07:11:18 augustss Exp $      */
 /*-
  * Copyright (c) 1999 MAEKAWA Masahide <bishop%rr.iij4u.or.jp@localhost>,
  *                   Nick Hibma <n_hibma%freebsd.org@localhost>
@@ -1191,7 +1191,7 @@
                break;
 
        case DVACT_DEACTIVATE:
-               if (sc->sc_child != NULL)
+               if (sc->sc_child == NULL)
                        break;
                rv = config_deactivate(sc->sc_child);
                DPRINTF(UDMASS_USB, ("%s: umass_activate: child "



Home | Main Index | Thread Index | Old Index