Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp703019rwj; Fri, 23 Dec 2022 07:06:23 -0800 (PST) X-Google-Smtp-Source: AMrXdXshsoAuNaPXv4GtrNJJM4zN2AGklo4dDj2V8LMoVzABdKFHhNH1389qO6wTt8fCFG9ymopF X-Received: by 2002:a17:906:185b:b0:841:e5b3:c95d with SMTP id w27-20020a170906185b00b00841e5b3c95dmr7361474eje.30.1671807983325; Fri, 23 Dec 2022 07:06:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671807983; cv=none; d=google.com; s=arc-20160816; b=kufrq1/srJvkkZ6sUonNtNvc8Ag7uxW5O3yx0o4gYIW7eCoDI+5wpz9+Qh0hV54tIj hmC2vlkQ+/40ucnnBXZRc9HVDrj0DGqOHaGk2M9FeiWc+plfHH4eFKWmZLhARI6Wedky h8EiYBGCs1/3upt5aCKarCqYtTAi5F9myuxXjwjwFpL/W+jpAHQItKk4Q3FZl9ClLj7w J8Y7N+6T7MRB+toqji2MhxJ8+P7ccmHq9G+0IBkl/69Je7+m6Y5pKRQityjN4JY4BXLT CbvwKpI2eVOTlNN/hFSWIKPv78OeTy5MMYnqSQ6pd+u4q2r/w97T5XwiFARN/QkHiisu nHWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=b6Gkc5ppbg9riXbQpo++lGcexl0DUMaxP1tSwPDTI0k=; b=ZQHR6QaC/Lz56uRuFb3T4zojGGefMmRFb7vtifZaBXoaj5hXh15KYqS3muiWo3gVep BeuuDsAWDeAwQPGecP7afDkJYeVhEjLBwC4V6Xmb4tbaONqaEp15GFwrO5ER7DBCrQHH Ii8Bqo/XLqiQzxyM5e4sON6zHO6rUcY+3/DRjoq/ifaff+0+xCwRJh0TsTgTzw0C/nvW /CUChN26DjN1FOKR58/9Qj1nVy9ZwpMECVA/ZXB+44OykG/i+0pxtyve/vspXPDC7mIw SB9U+EKDfwpMf2XwDqFLe3yStSjTnHBrQwsDdyMz9r48JNjtI5aMqsY1bIp5lsVmUR+6 J3uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HErUaAY8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xf1-20020a17090731c100b007c18b7a922dsi2242275ejb.469.2022.12.23.07.06.06; Fri, 23 Dec 2022 07:06:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HErUaAY8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236432AbiLWO4w (ORCPT + 65 others); Fri, 23 Dec 2022 09:56:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229658AbiLWO4u (ORCPT ); Fri, 23 Dec 2022 09:56:50 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2FE691A047; Fri, 23 Dec 2022 06:56:50 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E1B8EB820DE; Fri, 23 Dec 2022 14:56:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 47336C433EF; Fri, 23 Dec 2022 14:56:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1671807407; bh=qHfY0XUQ6jGaf6+6ji3OiIeEWQW3wFYAbnvzIIxCzLI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HErUaAY8L4JH3P6jccurgovJDesb9mt8pfOXtH/cbEflD2tusdQOU5+lz0Lsy3xAX pkrlDj1C8rY7SsE1hS1OgZ0J/NE0c26Yl/PEtmN/WhVKZYFkm1MTQMFIiN4AueKgc0 gjF+bUGPDI1roIe6QCiscdwOVzU2mxWFKj/YeI4I= Date: Fri, 23 Dec 2022 15:56:44 +0100 From: Greg Kroah-Hartman To: Prashanth K Cc: Pavel Hofman , Joe Perches , Julian Scheel , Colin Ian King , Pratham Pratap , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: usb: gadget: f_uac2: Fix incorrect increment of bNumEndpoints Message-ID: References: <1669193290-24263-1-git-send-email-quic_prashk@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1669193290-24263-1-git-send-email-quic_prashk@quicinc.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 23, 2022 at 02:18:10PM +0530, Prashanth K wrote: > Currently connect/disconnect of USB cable calls afunc_bind and > eventually increments the bNumEndpoints. And performing multiple > plugin/plugout will incorrectly increment bNumEndpoints on the > next plug-in leading to invalid configuration of descriptor and > hence enumeration failure. > > Fix this by resetting the value of bNumEndpoints to 1 on every > afunc_bind call. > > Signed-off-by: Pratham Pratap > Signed-off-by: Prashanth K Who authored this, Pratham or you? And why no "[PATCH]" in the subject line? What commit id does this fix? thanks, greg k-h