From owner-svn-src-all@FreeBSD.ORG Sun Feb 1 01:07:16 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD7EF10656E3; Sun, 1 Feb 2009 01:07:16 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id ABAD38FC13; Sun, 1 Feb 2009 01:07:16 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n1117G74038895; Sun, 1 Feb 2009 01:07:16 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n1117GvW038894; Sun, 1 Feb 2009 01:07:16 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200902010107.n1117GvW038894@svn.freebsd.org> From: Andrew Thompson Date: Sun, 1 Feb 2009 01:07:16 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187972 - head/sys/dev/usb2/misc X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Feb 2009 01:07:17 -0000 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;