Date: Fri, 16 May 2014 16:17:06 +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-8@freebsd.org Subject: svn commit: r266259 - stable/8/sys/dev/usb Message-ID: <201405161617.s4GGH6kR033407@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hselasky Date: Fri May 16 16:17:06 2014 New Revision: 266259 URL: http://svnweb.freebsd.org/changeset/base/266259 Log: MFC r265779: Fix for NULL pointer. Modified: stable/8/sys/dev/usb/usb_pf.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/dev/ (props changed) stable/8/sys/dev/usb/ (props changed) Modified: stable/8/sys/dev/usb/usb_pf.c ============================================================================== --- stable/8/sys/dev/usb/usb_pf.c Fri May 16 16:14:37 2014 (r266258) +++ stable/8/sys/dev/usb/usb_pf.c Fri May 16 16:17:06 2014 (r266259) @@ -261,7 +261,7 @@ usbpf_xfertap(struct usb_xfer *xfer, int /* sanity checks */ if (usb_no_pf != 0) return; - 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?201405161617.s4GGH6kR033407>