diff options
| author | skrll <skrll@NetBSD.org> | 2021-11-06 06:41:02 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2021-11-06 06:41:02 +0000 |
| commit | 0796d2ab82d3ec29a409b7a2d3caa0d6a07c554f (patch) | |
| tree | 557bafba59c5b40816e525497e200ae5ba442259 /sys/dev | |
| parent | af3bac7d21c88ac670d46c04919b2a0511d7b890 (diff) | |
config_pending_incr doesn't need KERNEL_LOCK protection
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/usb/usb_subr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/usb/usb_subr.c b/sys/dev/usb/usb_subr.c index 6f605df1a70..e884485567f 100644 --- a/sys/dev/usb/usb_subr.c +++ b/sys/dev/usb/usb_subr.c @@ -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, struct usbd_device *dev, int port, 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", |
