Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Feb 2009 01:07:16 +0000 (UTC)
From:      Andrew Thompson <thompsa@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187972 - head/sys/dev/usb2/misc
Message-ID:  <200902010107.n1117GvW038894@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902010107.n1117GvW038894>