Date: Thu, 9 Sep 2004 20:47:28 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/usb usb_subr.c Message-ID: <200409092047.i89KlSV9025685@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
imp         2004-09-09 20:47:28 UTC
  FreeBSD src repository
  Modified files:
    sys/dev/usb          usb_subr.c 
  Log:
  Add comments about why we're freeing subdevs (which is completely
  redundant at this point and should be retired).  Don't free subdevs if
  we don't attach any devices.  This was leaving stale device_t's
  around.  Don't touch the device if it isn't attached since the name
  isn't meaningful then.  Switch from strncpy (properly used) to
  strlcpy.
  
  From a patch submitted by Peter Pentchev
  
  Revision  Changes    Path
  1.70      +11 -8     src/sys/dev/usb/usb_subr.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409092047.i89KlSV9025685>
