From owner-p4-projects@FreeBSD.ORG Fri Apr 13 11:00:32 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 14FB016A403; Fri, 13 Apr 2007 11:00:32 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D711116A400 for ; Fri, 13 Apr 2007 11:00:31 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id B07F113C480 for ; Fri, 13 Apr 2007 11:00:31 +0000 (UTC) (envelope-from hselasky@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l3DB0VmD006485 for ; Fri, 13 Apr 2007 11:00:31 GMT (envelope-from hselasky@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l3DB0VNh006482 for perforce@freebsd.org; Fri, 13 Apr 2007 11:00:31 GMT (envelope-from hselasky@FreeBSD.org) Date: Fri, 13 Apr 2007 11:00:31 GMT Message-Id: <200704131100.l3DB0VNh006482@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to hselasky@FreeBSD.org using -f From: Hans Petter Selasky To: Perforce Change Reviews Cc: Subject: PERFORCE change 117996 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2007 11:00:32 -0000 http://perforce.freebsd.org/chv.cgi?CH=117996 Change 117996 by hselasky@hselasky_mini_itx on 2007/04/13 11:00:10 Fix a bug where "usbd_find_edesc()" returns the wrong descriptor. Reported by Markus Henschel. Affected files ... .. //depot/projects/usb/src/sys/dev/usb/usb_subr.c#31 edit Differences ... ==== //depot/projects/usb/src/sys/dev/usb/usb_subr.c#31 (text+ko) ==== @@ -352,7 +352,7 @@ if (curidx == endptidx) { return ((desc->bLength >= USB_ENDPOINT_DESCRIPTOR_SIZE) ? - ((void *)d) : NULL); + ((void *)desc) : NULL); } curidx++; }