From nobody Wed Nov 13 14:27:13 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 4XpQbP3lptz5dgLd; Wed, 13 Nov 2024 14:27:13 +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 4XpQbP357fz4p7m; Wed, 13 Nov 2024 14:27:13 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731508033; 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=BcyVYmTYRaCIr54ACdUYpPKgq9iXk5EIHv9rY8Bocuo=; b=oBqmDRNbpeAJSzRnUuftL3RqRmJzELetlQXLYCVltCBJVkOkBMe38yBAeRE7UQwaw1rdVm +A5YHxIaQaIamo1oECNuUv2MnLSFp+Zu6yVwP3yczqyGb76Jb9wIPlXjWIHuBSEwsSJsir J+1SbViiGqWAfGRVzmzdf2M/AWRPaJJOUvxmiRh/ZPUV2yPuJwRT/hJkSbL0Hgvw+To+oT Z/FJuymRA4cCpLnGAsV+RDVM5LmdW06tRytRmOBJHQdcCh0yElKL4RYdXyrkf4JMfI1kjT 8intfjnIYRIoj18ErsfSp188Sckf+BAHc+nQqQH3OCDyO11llNLxcqNcbf/S2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1731508033; 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=BcyVYmTYRaCIr54ACdUYpPKgq9iXk5EIHv9rY8Bocuo=; b=vNNVGT81aoc753qUx/1P2+yRYUQjiccw0JpqX8AbVuc8nn4zLRJIrdrV4OSNxf1BG1BRI0 KuOHgROMYh/f5Lcrqcd0wETpjRmB5PXT+FLWWGJno/4ZjG77edJtpAfYP/vD5AHFuHHvtR Cse1Ik34Rjmch58khkk2TE52SoXolv3+Jghm3mZduUe6LLeCEJaZsnRyrhJGu61+nFvOBV jT2Z8w9vayDraCfKLnsdLQG3+AI8997Uqbu0kODLIJ5NBrwoYA1tChZRB2diPB/obHPDtL VHiWu9wVWEcGLPZPO86zXIFJJTvQAoCIdJcU5A7HjG3SvFR01nH/GNzZ7mB5Nw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1731508033; a=rsa-sha256; cv=none; b=v9GjbJTe+Grxetjc14dLQEolR43kSqAeLLaiZlrJQgpgPeQVdMFgrZvUzP6AQfutlVJlYN Dxeoyv1DkvzyCDIFrze2pRVkv1Jvn6NhZ7SFw2b4WS64rdJS9eTr4XvpI3O98qkLObzNAG HaUF0FiZLTRbgzCnqBn/iB2s3N5bAmyoab43XEMBHwPSxH1/2YjaHjqbOahOcqMfJeUWn9 lRwi6IAcFz6R8+i2v/74p7gVkFBsHq1geX/vqVzXlRIVSI3eZ3BFDXsPdn3SuGsTxk/79E 1/clOk5rYcINlZNiGWFgYPJ2VM81ZepxePnaRmtX3ZZFGqJKE6d7XeS91EOnTw== 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 4XpQbP2gZXzxwF; Wed, 13 Nov 2024 14:27:13 +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 4ADERDkd074780; Wed, 13 Nov 2024 14:27:13 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ADERDjc074777; Wed, 13 Nov 2024 14:27:13 GMT (envelope-from git) Date: Wed, 13 Nov 2024 14:27:13 GMT Message-Id: <202411131427.4ADERDjc074777@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: ddc9bb706808 - stable/14 - 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/14 X-Git-Reftype: branch X-Git-Commit: ddc9bb706808468b2808ab9a32efc5f8dfb346c9 Auto-Submitted: auto-generated The branch stable/14 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=ddc9bb706808468b2808ab9a32efc5f8dfb346c9 commit ddc9bb706808468b2808ab9a32efc5f8dfb346c9 Author: Ed Maste AuthorDate: 2024-10-04 15:49:53 +0000 Commit: Ed Maste CommitDate: 2024-11-13 14:26:44 +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) --- 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++; } }