Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Feb 2014 12:11:43 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r262554 - head/sys/dev/usb
Message-ID:  <201402271211.s1RCBhE1032102@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402271211.s1RCBhE1032102>