diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-20 10:08:06 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2015-12-20 10:08:06 +0000 |
commit | 74d38924ba4fb31ccc43568066691b842d200d76 (patch) | |
tree | e345d474fb2c6c3462257badc0932dc3ac612bfa /sys | |
parent | fba16211cd34c7fd9a96f0e797abbba9b3e02195 (diff) |
Do not delay video(4) attachment if the device does not need to load
a firmware.
Regression spotted by deraadt@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/usb/uvideo.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/usb/uvideo.c b/sys/dev/usb/uvideo.c index 67077e9586c..69576a1c1e9 100644 --- a/sys/dev/usb/uvideo.c +++ b/sys/dev/usb/uvideo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvideo.c,v 1.182 2015/12/11 16:07:02 mpi Exp $ */ +/* $OpenBSD: uvideo.c,v 1.183 2015/12/20 10:08:05 mpi Exp $ */ /* * Copyright (c) 2008 Robert Nagy <robert@openbsd.org> @@ -526,7 +526,10 @@ uvideo_attach(struct device *parent, struct device *self, void *aux) /* maybe the device has quirks */ sc->sc_quirk = uvideo_lookup(uaa->vendor, uaa->product); - config_mountroot(self, uvideo_attach_hook); + if (sc->sc_quirk && sc->sc_quirk->ucode_name) + config_mountroot(self, uvideo_attach_hook); + else + uvideo_attach_hook(self); } void |