From nobody Mon Nov 11 02:53:57 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XmvJP4X7Qz5cfrP; Mon, 11 Nov 2024 02:53:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XmvJP3yLDz472n; Mon, 11 Nov 2024 02:53:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731293637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JY3WWyudSnEC9aekMSlX08jH7thEocmnF1rt3pgwKAA=; b=q5adRJke5yBTfAnjKAtG1wTjrQpXHzspEJO0BGLp9V6CW2j+wQe7Fkfdyrt37rL91T3SYd xExly9f7Vyh2Y8TlNj4D3AEZlL7p1E62b76J9iXky3cRIbK7XmBDvRB6pY2NOSZ0rH9DGb q2eNabnqW2APGKVUnZTQ1jJJU0iF4AlkNElxIFqWhWaGX61KT0fp3cx/PfZtkYBxkN9uTD 9OXELVxWeBzxBGgb+YP9Bflvsb42dqsaYtoJHVsZGetWIVWBxmOLgdPr+Bp4xKUUAtotAV 8fTvrL+cfEtS2UkHxocS1b0ufWGxIp07IsrtPFhzjd0TOZA8QCvKzDgDlaYDEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731293637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JY3WWyudSnEC9aekMSlX08jH7thEocmnF1rt3pgwKAA=; b=JhFLNQiTtX9AOrxFOPQJ+Ry46VjgEfYgLnppQ6OxIOp4zFNNDol3zoPe185OCl6j9JLdV7 5WDMOBCJNWGY8aMK9hDXf+GmtHuihwFxE0bnz830d9ratUcHkR+g7H3tVvK3K1sOA9LY9Q Sn22HRn0oJXLnP1WCo2w1dyKzsIQzIh62nZ673FJaLIQ/p6f2XEOveLvjRBEVrb+4Z4Kof S2kIVFf1oyHF+riKx3UtC+2cFOKi3KnmidC5lEtp0qgT2jxBEFgFIFirvkghqCnyRVZlKq gTh0O3Xp78osPfunvCBl4lDBxhE3dCttpir9qTQSGnEtBnrqSqZIkDqJq3a7Rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731293637; a=rsa-sha256; cv=none; b=i6bIhPjE1OmzSw2Rf+O6+NC28e8Ubj2V8txYoYcrQiTnK5iEDgq4aEjr47iMxMxiJmzI5L qOyBCBZ2wyDkaBX1wqPEBR+7yBAtYfkPcktQ1QDI/deBaFYcCtTqJVZNd9I077MQafY6D2 lJ+v3Q8K6CgXBWjd7NE9XIszCVbmmzW8bTRS0jV6d7w2Qr+/NrRTDeVHQb2jAKzknUCiqy jK0yWzMSQc+qYa+5P/xu/1iNPq5fHjt0EO3PnXz5/5HflemGTMXdYcH47+ZeoKYKuRzMlQ VnB3/1+ZIWlcves/RevFF/XPOmgl/iPVD9rJVSr+HB423638ZFvz8eNzkXxp1g== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XmvJP3NrZz16xJ; Mon, 11 Nov 2024 02:53:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AB2rvZl042609; Mon, 11 Nov 2024 02:53:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AB2rvTx042606; Mon, 11 Nov 2024 02:53:57 GMT (envelope-from git) Date: Mon, 11 Nov 2024 02:53:57 GMT Message-Id: <202411110253.4AB2rvTx042606@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 114080d19973 - main - usb: fix loop in usb_config_parse List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 114080d19973331426cd826f3a961c6ea9216a53 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=114080d19973331426cd826f3a961c6ea9216a53 commit 114080d19973331426cd826f3a961c6ea9216a53 Author: Ed Maste AuthorDate: 2024-10-04 15:49:53 +0000 Commit: Ed Maste CommitDate: 2024-11-11 02:53:18 +0000 usb: fix loop in usb_config_parse By inspection, index increment was missing. PR: 281843 Reported by: Matt Jacobson Reviewed by: bz, markj Fixes: e4611d26265f ("usb(4): Call optional endpoint_uninit() when changing configuration or alternate setting.") Sponsored by: The FreeBSD Foundation --- sys/dev/usb/usb_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c index 0f3c6a959ad2..e478fa66b6c9 100644 --- a/sys/dev/usb/usb_device.c +++ b/sys/dev/usb/usb_device.c @@ -855,6 +855,7 @@ usb_config_parse(struct usb_device *udev, uint8_t iface_index, uint8_t cmd) if (ep->refcount_alloc != 0) return (USB_ERR_IN_USE); } + ep++; } }