Author: hselasky
Date: Thu Feb 27 12:11:43 2014
New Revision: 262554
URL: http://svnweb.freebsd.org/changeset/base/262554

Log:
  Clear the knote list before destroying it.
  Add seldrain() to wakeup any pollers.
  
  Submitted by: Kohji Okuno <okuno.ko...@jp.panasonic.com>
  MFC after:    2 weeks

Modified:
  head/sys/dev/usb/usb_dev.c

Modified: head/sys/dev/usb/usb_dev.c
==============================================================================
--- head/sys/dev/usb/usb_dev.c  Thu Feb 27 11:34:26 2014        (r262553)
+++ head/sys/dev/usb/usb_dev.c  Thu Feb 27 12:11:43 2014        (r262554)
@@ -622,6 +622,8 @@ usb_fifo_free(struct usb_fifo *f)
        cv_destroy(&f->cv_io);
        cv_destroy(&f->cv_drain);
 
+       knlist_clear(&f->selinfo.si_note, 0);
+       seldrain(&f->selinfo);
        knlist_destroy(&f->selinfo.si_note);
 
        free(f, M_USBDEV);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to