Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb config_pending_incr doesn't need KERNEL_LOCK pro...



details:   https://anonhg.NetBSD.org/src/rev/bb664b2687dc
branches:  trunk
changeset: 1024806:bb664b2687dc
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Nov 06 06:41:02 2021 +0000

description:
config_pending_incr doesn't need KERNEL_LOCK protection

diffstat:

 sys/dev/usb/usb_subr.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 8a651c12c54a -r bb664b2687dc sys/dev/usb/usb_subr.c
--- a/sys/dev/usb/usb_subr.c    Sat Nov 06 06:40:33 2021 +0000
+++ b/sys/dev/usb/usb_subr.c    Sat Nov 06 06:41:02 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb_subr.c,v 1.267 2021/09/07 10:44:18 riastradh Exp $ */
+/*     $NetBSD: usb_subr.c,v 1.268 2021/11/06 06:41:02 skrll Exp $     */
 /*     $FreeBSD: src/sys/dev/usb/usb_subr.c,v 1.18 1999/11/17 22:33:47 n_hibma Exp $   */
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.267 2021/09/07 10:44:18 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_subr.c,v 1.268 2021/11/06 06:41:02 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1120,8 +1120,9 @@
        dlocs[USBDEVIFCF_CONFIGURATION] = -1;
        dlocs[USBDEVIFCF_INTERFACE] = -1;
 
+       config_pending_incr(parent);
+
        KERNEL_LOCK(1, curlwp);
-       config_pending_incr(parent);
        dv = config_found(parent, &uaa, usbd_print,
                          CFARGS(.submatch = config_stdsubmatch,
                                 .iattr = "usbdevif",



Home | Main Index | Thread Index | Old Index