Re: usb/138389: commit references a PR

View: New views
1 Messages — Rating Filter:   Alert me  

Re: usb/138389: commit references a PR

by dfilter service :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The following reply was made to PR usb/138389; it has been noted by GNATS.

From: dfilter@... (dfilter service)
To: bug-followup@...
Cc:  
Subject: Re: usb/138389: commit references a PR
Date: Thu, 29 Oct 2009 23:17:32 +0000 (UTC)

 Author: thompsa
 Date: Thu Oct 29 23:17:23 2009
 New Revision: 198644
 URL: http://svn.freebsd.org/changeset/base/198644
 
 Log:
   MFC r197558
   
    Fix NULL-pointer dereference in usb_endpoint_foreach().
   
   PR: usb/138389
 
 Modified:
   stable/8/sys/   (props changed)
   stable/8/sys/amd64/include/xen/   (props changed)
   stable/8/sys/cddl/contrib/opensolaris/   (props changed)
   stable/8/sys/contrib/dev/acpica/   (props changed)
   stable/8/sys/contrib/pf/   (props changed)
   stable/8/sys/dev/usb/usb_device.c
   stable/8/sys/dev/xen/xenpci/   (props changed)
 
 Modified: stable/8/sys/dev/usb/usb_device.c
 ==============================================================================
 --- stable/8/sys/dev/usb/usb_device.c Thu Oct 29 23:16:39 2009 (r198643)
 +++ stable/8/sys/dev/usb/usb_device.c Thu Oct 29 23:17:23 2009 (r198644)
 @@ -367,12 +367,14 @@ usb_init_endpoint(struct usb_device *ude
  struct usb_endpoint *
  usb_endpoint_foreach(struct usb_device *udev, struct usb_endpoint *ep)
  {
 - struct usb_endpoint *ep_end = udev->endpoints + udev->endpoints_max;
 + struct usb_endpoint *ep_end;
 
  /* be NULL safe */
  if (udev == NULL)
  return (NULL);
 
 + ep_end = udev->endpoints + udev->endpoints_max;
 +
  /* get next endpoint */
  if (ep == NULL)
  ep = udev->endpoints;
 _______________________________________________
 svn-src-all@... mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@..."
 
_______________________________________________
freebsd-usb@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscribe@..."