artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f3d697
)
This allows us to disable usb(4) without kernel crash.
author
mglocker
<mglocker@openbsd.org>
Sun, 5 Sep 2021 16:16:13 +0000
(16:16 +0000)
committer
mglocker
<mglocker@openbsd.org>
Sun, 5 Sep 2021 16:16:13 +0000
(16:16 +0000)
ok mpi@
sys/dev/usb/usb.c
patch
|
blob
|
history
diff --git
a/sys/dev/usb/usb.c
b/sys/dev/usb/usb.c
index
b894388
..
12c57c8
100644
(file)
--- a/
sys/dev/usb/usb.c
+++ b/
sys/dev/usb/usb.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: usb.c,v 1.12
7 2021/01/29 16:59:41 sthen Exp $
*/
+/* $OpenBSD: usb.c,v 1.12
8 2021/09/05 16:16:13 mglocker Exp $
*/
/* $NetBSD: usb.c,v 1.77 2003/01/01 00:10:26 thorpej Exp $ */
/*
@@
-883,6
+883,10
@@
usb_schedsoftintr(struct usbd_bus *bus)
{
DPRINTFN(10,("%s: polling=%d\n", __func__, bus->use_polling));
+ /* In case usb(4) is disabled */
+ if (bus->soft == NULL)
+ return;
+
if (bus->use_polling) {
bus->methods->soft_intr(bus);
} else {