Author: hselasky
Date: Fri May 16 16:14:37 2014
New Revision: 266258
URL: http://svnweb.freebsd.org/changeset/base/266258
Log:
MFC r265779:
Fix for NULL pointer.
Modified:
stable/9/sys/dev/usb/usb_pf.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/usb/usb_pf.c
==============================================================================
--- stable/9/sys/dev/usb/usb_pf.c Fri May 16 16:11:14 2014
(r266257)
+++ stable/9/sys/dev/usb/usb_pf.c Fri May 16 16:14:37 2014
(r266258)
@@ -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;
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"