Module Name: src Committed By: skrll Date: Sat Nov 6 06:41:02 UTC 2021
Modified Files: src/sys/dev/usb: usb_subr.c Log Message: config_pending_incr doesn't need KERNEL_LOCK protection To generate a diff of this commit: cvs rdiff -u -r1.267 -r1.268 src/sys/dev/usb/usb_subr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/usb_subr.c diff -u src/sys/dev/usb/usb_subr.c:1.267 src/sys/dev/usb/usb_subr.c:1.268 --- src/sys/dev/usb/usb_subr.c:1.267 Tue Sep 7 10:44:18 2021 +++ src/sys/dev/usb/usb_subr.c Sat Nov 6 06:41:02 2021 @@ -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 @@ usbd_attachwholedevice(device_t parent, dlocs[USBDEVIFCF_CONFIGURATION] = -1; dlocs[USBDEVIFCF_INTERFACE] = -1; - KERNEL_LOCK(1, curlwp); config_pending_incr(parent); + + KERNEL_LOCK(1, curlwp); dv = config_found(parent, &uaa, usbd_print, CFARGS(.submatch = config_stdsubmatch, .iattr = "usbdevif",