Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 May 2014 14:28:11 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265779 - head/sys/dev/usb
Message-ID:  <201405091428.s49ESBdG087576@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri May  9 14:28:11 2014
New Revision: 265779
URL: http://svnweb.freebsd.org/changeset/base/265779

Log:
  Fix for NULL pointer.
  
  MFC after:	1 week

Modified:
  head/sys/dev/usb/usb_pf.c

Modified: head/sys/dev/usb/usb_pf.c
==============================================================================
--- head/sys/dev/usb/usb_pf.c	Fri May  9 14:24:02 2014	(r265778)
+++ head/sys/dev/usb/usb_pf.c	Fri May  9 14:28:11 2014	(r265779)
@@ -395,7 +395,7 @@ usbpf_xfertap(struct usb_xfer *xfer, int
 	bus = xfer->xroot->bus;
 
 	/* sanity checks */
-	if (bus->ifp == NULL)
+	if (bus->ifp == NULL || bus->ifp->if_bpf == NULL)
 		return;
 	if (!bpf_peers_present(bus->ifp->if_bpf))
 		return;



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