svn commit: r187972 - head/sys/dev/usb2/misc
Andrew Thompson
thompsa at FreeBSD.org
Sat Jan 31 17:07:17 PST 2009
Author: thompsa
Date: Sun Feb 1 01:07:15 2009
New Revision: 187972
URL: http://svn.freebsd.org/changeset/base/187972
Log:
Revert part of r187970, the NULL check was removed from
udbp_bulk_read_complete() as well as udbp_attach.
Modified:
head/sys/dev/usb2/misc/udbp2.c
Modified: head/sys/dev/usb2/misc/udbp2.c
==============================================================================
--- head/sys/dev/usb2/misc/udbp2.c Sun Feb 1 01:04:31 2009 (r187971)
+++ head/sys/dev/usb2/misc/udbp2.c Sun Feb 1 01:07:15 2009 (r187972)
@@ -473,6 +473,9 @@ udbp_bulk_read_complete(node_p node, hoo
struct mbuf *m;
int error;
+ if (sc == NULL) {
+ return;
+ }
mtx_lock(&sc->sc_mtx);
m = sc->sc_bulk_in_buffer;
More information about the svn-src-head
mailing list