From nobody Wed Nov 13 14:28:07 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 4XpQcS1Mwdz5dgJW; Wed, 13 Nov 2024 14:28:08 +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 4XpQcS0Pxmz4pn1; Wed, 13 Nov 2024 14:28:08 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731508088; 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=tup3XSAhZWNjWFQRwWx+0xl/4SiaxZRbvsLTyNFT0N4=; b=pCZZ6/kLuEwRQIzcVJD8Ghx+PDyjDYYlMdx1AgnO//v24t0nJbmG7UYjD/Y/9lhQUpFNRQ MnVThRTHAbGUT5trme7BQp58X0r6srm2M9bHJWYD0yg9eF1dbAmZ47RRtBhFVQUbzUhNeI mJQfC2x5wuPfKOwtY6ZQKmnR4X/dMzMMgW4GSQY6AXVsrlII+N3COptJ6Jzi28vb45tlKx cBHaWeTj+VtxFx5VK+SDeXd1zlFwfvqCQ48sFSfVqbgRD+Juup+5BbuC2kvtSHPbHxxS6h YXIJoF254KFf+CHygFU7uX/1SSVaH8pzuMBYL3LHqjucNUidaICFcwHY9pNJ2w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731508088; 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=tup3XSAhZWNjWFQRwWx+0xl/4SiaxZRbvsLTyNFT0N4=; b=vdfVKa79yCwPwMg3Sr3NHXQhZdoVzptpzjAOle/2GJh7pvTKuwmRkvnu+m3rYcgh+dC/T9 MD+3VGOHyVtO/ld6WR33sOjf7QO9tCDHccZAGSIEy6SkSmZt0mmjw6VPmYviwj3txp0xbT I9C41//ZqzVsaiuP7K5Q+gHrAA7T1iKBFzEeEZvuPn2Wnn5M9NBKbwWA+9lhnqIbk7tSOC Lmr6pBjlBoEDS6QJUQRNn1ao6FGipP2xw4idRMoALSWn7CH74esW0lkgT+b3wcixgYedfK lWYsDHfEq3IGg6kHLpJ4+hVsPTg3xyreewNWomJ4q0T5WlcKCbP+zfcZjktNbQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731508088; a=rsa-sha256; cv=none; b=gkyLyMJ0i5Jjn+9PVskVcMxclMUD1ReoExO23G3DuzBjpc/N03NHdaK6MUmXN4ZtSsAMUL E+9PYfxOqz1ZyWRhPOshx9pHDPMMFqvYfAvlBMGgzuclSHt0+VHLUKcyHhM3TAtDlfuwH3 qWwRoMEJh/7RIZOLRckCFBcgCO7DsDtK/vL/XrFP/FXkB5xrdAEimihRQpI3DhGidCaPHw zGJgxBGEpxRHsunLhXj138KB6VrMDXvHID4xBQMUmI+dJoxfzXnjo6oQVw6fMRkV48XKFy dMnYyJZ8GKV0OedK7UZSin89bMsH7h6/DsHBRJyra7DRzNoJTlPhRHZlxL+4QA== 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 4XpQcR6ppXzyH7; Wed, 13 Nov 2024 14:28:07 +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 4ADES7b4075217; Wed, 13 Nov 2024 14:28:07 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ADES7jw075214; Wed, 13 Nov 2024 14:28:07 GMT (envelope-from git) Date: Wed, 13 Nov 2024 14:28:07 GMT Message-Id: <202411131428.4ADES7jw075214@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: 9e7356944da4 - stable/13 - 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/stable/13 X-Git-Reftype: branch X-Git-Commit: 9e7356944da4693e9ceb40bf65ed525048faa106 Auto-Submitted: auto-generated The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=9e7356944da4693e9ceb40bf65ed525048faa106 commit 9e7356944da4693e9ceb40bf65ed525048faa106 Author: Ed Maste AuthorDate: 2024-10-04 15:49:53 +0000 Commit: Ed Maste CommitDate: 2024-11-13 14:27:54 +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 (cherry picked from commit 114080d19973331426cd826f3a961c6ea9216a53) (cherry picked from commit ddc9bb706808468b2808ab9a32efc5f8dfb346c9) --- 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 c4fe3b4a6ab6..bce1541ab3ad 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++; } }