From owner-svn-src-head@FreeBSD.ORG Tue Jan 13 19:06:02 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7FC481065956; Tue, 13 Jan 2009 19:06:02 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 6DD788FC14; Tue, 13 Jan 2009 19:06:02 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n0DJ62X0013002; Tue, 13 Jan 2009 19:06:02 GMT (envelope-from thompsa@svn.freebsd.org) Received: (from thompsa@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n0DJ62Hx013001; Tue, 13 Jan 2009 19:06:02 GMT (envelope-from thompsa@svn.freebsd.org) Message-Id: <200901131906.n0DJ62Hx013001@svn.freebsd.org> From: Andrew Thompson Date: Tue, 13 Jan 2009 19:06:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r187184 - head/lib/libusb20 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 13 Jan 2009 19:06:04 -0000 Author: thompsa Date: Tue Jan 13 19:06:02 2009 New Revision: 187184 URL: http://svn.freebsd.org/changeset/base/187184 Log: MFp4: //depot/projects/usb@156092 Make sure all claimed interfaces gets released at close. Submitted by: Hans Petter Selasky Modified: head/lib/libusb20/libusb20.c Modified: head/lib/libusb20/libusb20.c ============================================================================== --- head/lib/libusb20/libusb20.c Tue Jan 13 19:05:51 2009 (r187183) +++ head/lib/libusb20/libusb20.c Tue Jan 13 19:06:02 2009 (r187184) @@ -486,6 +486,8 @@ libusb20_dev_close(struct libusb20_devic pdev->is_opened = 0; + pdev->claimed_interfaces = 0; + return (error); }