summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2008-05-26 11:20:40 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2008-05-26 11:20:40 +0000
commit87fa6015da05739ff779b4d4a9a612f83b88278c (patch)
treea7b3c86d3f2b2f36b4c9ee946be89e0d0a307321 /sys
parent7871313ca6bfd9738afcd96b50d3ee02b8bb9b3d (diff)
Properly handle usbd_get_interface_descriptor() returning NULL.
From Jacek Masiulaniec <jacekm@dobremiasto.net>
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb/umsm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/umsm.c b/sys/dev/usb/umsm.c
index 16724f50dad..98486b99d2c 100644
--- a/sys/dev/usb/umsm.c
+++ b/sys/dev/usb/umsm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: umsm.c,v 1.25 2008/05/12 12:24:43 jsg Exp $ */
+/* $OpenBSD: umsm.c,v 1.26 2008/05/26 11:20:39 jsg Exp $ */
/*
* Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org>
@@ -193,8 +193,8 @@ umsm_attach(struct device *parent, struct device *self, void *aux)
*/
printf("%s: umass only mode. need to reattach\n",
sc->sc_dev.dv_xname);
- return;
}
+ return;
}
uca.bulkin = uca.bulkout = -1;