summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2009-02-01 01:07:15 +0000
committerthompsa <thompsa@FreeBSD.org>2009-02-01 01:07:15 +0000
commitc3045042619629c24f9994b20fb8aa21d4ddf677 (patch)
tree333c38d8975579f20df82d314fda8b72374d6659
parentee1591cd11414dcc5bbcb3df9aadb4e83675fc9b (diff)
downloadFreeBSD-src-c3045042619629c24f9994b20fb8aa21d4ddf677.zip
FreeBSD-src-c3045042619629c24f9994b20fb8aa21d4ddf677.tar.gz
Revert part of r187970, the NULL check was removed from
udbp_bulk_read_complete() as well as udbp_attach.
-rw-r--r--sys/dev/usb2/misc/udbp2.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb2/misc/udbp2.c b/sys/dev/usb2/misc/udbp2.c
index 97136e4..4b4fbfd 100644
--- a/sys/dev/usb2/misc/udbp2.c
+++ b/sys/dev/usb2/misc/udbp2.c
@@ -473,6 +473,9 @@ udbp_bulk_read_complete(node_p node, hook_p hook, void *arg1, int arg2)
struct mbuf *m;
int error;
+ if (sc == NULL) {
+ return;
+ }
mtx_lock(&sc->sc_mtx);
m = sc->sc_bulk_in_buffer;
OpenPOWER on IntegriCloud