svn commit: r262554 - head/sys/dev/usb
Hans Petter Selasky
hselasky at FreeBSD.org
Thu Feb 27 12:11:44 UTC 2014
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.kohji at 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);
More information about the svn-src-head
mailing list