Date: Fri, 16 May 2014 16:11:14 +0000 (UTC) From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r266257 - stable/10/sys/dev/usb Message-ID: <201405161611.s4GGBEwN031660@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri May 16 16:11:14 2014 New Revision: 266257 URL: http://svnweb.freebsd.org/changeset/base/266257 Log: MFC r265779: Fix for NULL pointer. Modified: stable/10/sys/dev/usb/usb_pf.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/usb/usb_pf.c ============================================================================== --- stable/10/sys/dev/usb/usb_pf.c Fri May 16 16:07:21 2014 (r266256) +++ stable/10/sys/dev/usb/usb_pf.c Fri May 16 16:11:14 2014 (r266257) @@ -394,7 +394,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?201405161611.s4GGBEwN031660>