From 84bcda5d6851a64d00243493527ca2f25b0599cc Mon Sep 17 00:00:00 2001 From: Andrew Thompson Date: Sun, 1 Feb 2009 01:07:15 +0000 Subject: [PATCH] Revert part of r187970, the NULL check was removed from udbp_bulk_read_complete() as well as udbp_attach. --- sys/dev/usb2/misc/udbp2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/usb2/misc/udbp2.c b/sys/dev/usb2/misc/udbp2.c index 97136e4bdcf6..4b4fbfd537d9 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;