Source-Changes-HG archive

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

[src/netbsd-8]: src/sys/dev/usb Pull up following revision(s) (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/9cc261c6cbc0
branches:  netbsd-8
changeset: 947161:9cc261c6cbc0
user:      martin <martin%NetBSD.org@localhost>
date:      Sat Dec 12 12:58:51 2020 +0000

description:
Pull up following revision(s) (requested by mrg in ticket #1636):

        sys/dev/usb/ucom.c: revision 1.128

properly wait for refcounts to drain.
fixes panic at detach that jmnceill saw.

XXX: pullup-[89].

diffstat:

 sys/dev/usb/ucom.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 65712832bd68 -r 9cc261c6cbc0 sys/dev/usb/ucom.c
--- a/sys/dev/usb/ucom.c        Fri Dec 11 19:35:16 2020 +0000
+++ b/sys/dev/usb/ucom.c        Sat Dec 12 12:58:51 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ucom.c,v 1.118.8.4 2019/05/07 18:47:01 martin Exp $    */
+/*     $NetBSD: ucom.c,v 1.118.8.5 2020/12/12 12:58:51 martin Exp $    */
 
 /*
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.118.8.4 2019/05/07 18:47:01 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ucom.c,v 1.118.8.5 2020/12/12 12:58:51 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -431,7 +431,7 @@
        }
 
        sc->sc_refcnt--;
-       while (sc->sc_refcnt > 0) {
+       while (sc->sc_refcnt >= 0) {
                /* Wake up anyone waiting */
                if (tp != NULL) {
                        mutex_spin_enter(&tty_lock);



Home | Main Index | Thread Index | Old Index