From owner-svn-src-head@FreeBSD.ORG Thu Feb 27 12:11:44 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0DA9B6C1; Thu, 27 Feb 2014 12:11:44 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id EDE0210BD; Thu, 27 Feb 2014 12:11:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s1RCBh9E032103; Thu, 27 Feb 2014 12:11:43 GMT (envelope-from hselasky@svn.freebsd.org) Received: (from hselasky@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s1RCBhE1032102; Thu, 27 Feb 2014 12:11:43 GMT (envelope-from hselasky@svn.freebsd.org) Message-Id: <201402271211.s1RCBhE1032102@svn.freebsd.org> From: Hans Petter Selasky Date: Thu, 27 Feb 2014 12:11:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r262554 - head/sys/dev/usb X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Feb 2014 12:11:44 -0000 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 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);