Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14961305rwb; Mon, 28 Nov 2022 06:41:36 -0800 (PST) X-Google-Smtp-Source: AA0mqf4+rKQiqUbdRqX9/M1uFko82ylQin7xuBJUQnBGS2UvsW+ALB/M2iTV/08KouZ+CvIf+rrx X-Received: by 2002:a17:906:4351:b0:78d:513d:f447 with SMTP id z17-20020a170906435100b0078d513df447mr31080700ejm.708.1669646496268; Mon, 28 Nov 2022 06:41:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669646496; cv=none; d=google.com; s=arc-20160816; b=gyf4GAp/9zNTNRCjhG9/078QZlEZRl6TyS+62vuUGiSolPPOr/3Tjsz0pHQwzUjoKm +55iuqt3SvIInTaCrLKS1pLepzW9ja4NY/K5vSnORI90b+GFDmHLYbkn9VYyj6fDJkhb 0LHqOXAs/9UqbED0KxW0ooy4Z1MtrZ7Cg02OmwgqCUcoIuRXH+csU2E3fvkAfqAWbV6p VVPNaHUiKnw2N2id9bGDgqZC48vHXXin1iJtsAedXTYqFzdWuK0HjAsJgSBgs2nYp/U6 ILTaGrrwnvJlN7W/TpRtfFbfLe3dQ2HKzcygQClZTBZALeWR55foX/UP1cF2+tBnpfcs D2pw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=l2Wejnk84zyCbgh5Ae+R81zOTeqv7Nzs8Lk6JaTb5HU=; b=dMDikfq+raI2z/1c/emcwvEJjcKNtOBusIlAHJ7hOBitiX7UguaD5PXR7xpjISRGu6 GdbTodFde8zfGDoxCBaGwsgWtYdyCulZFGwGK16R0t0QVQKQq/+WaXqj5rpvhQt2pxiv 5he1rsZQ4tfws2Rbv6fUIwoZ1ysyFTICYaFfAIJxnHSEivWVs5jr+9FKc/up2rl8pHyV CJ6oxVOTA2ZoCfYobMNRXnlLh/FoTXnTAXhZRmz4DBknlOfeQIm+oEszdHSntYhKGz4g GL/yoJJwp7ZgHu5I4nwaMhGvPT9D3wnVVVxNZO3qzSHspyIDURoG+11wL8XOmf3pONWF 1FOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bGlQHwLR; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nc36-20020a1709071c2400b0070fc7c9d71dsi9725681ejc.989.2022.11.28.06.41.14; Mon, 28 Nov 2022 06:41:36 -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=@kernel.org header.s=k20201202 header.b=bGlQHwLR; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232288AbiK1OEg (ORCPT + 84 others); Mon, 28 Nov 2022 09:04:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232301AbiK1OEW (ORCPT ); Mon, 28 Nov 2022 09:04:22 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EAA6FD12C; Mon, 28 Nov 2022 06:04:21 -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 9A917B80DDA; Mon, 28 Nov 2022 14:04:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D49DDC433D7; Mon, 28 Nov 2022 14:04:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1669644259; bh=hJGjJg60sjMbrCzlwGn3rya6L16V299vyXbEqb4YAR8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bGlQHwLR8hxljgzrgVHHC9LZOQfx9gKF+fQ1o5nVnR3iIyt98G1ob49nUHqdwuWKL sbqABdmC0J29f+uqMO09G/htURJnWsQevMZqn5ctWeH/DS0VIqmDf4O4H0ABDSwKqI tt2h3ljwB5yOAra2d6NUD4Pk+s0QuO0q9Qx/oqvChA3FAOMULv30J3GR4VFvN3fHXP NXxMAzl5symBF+2sGLx848HwjtoldJG1Hjr2ymuYPrWJ+Prwu8pDCA3j2a4cRbAK7z UyA7+gEfkG1dLHsYKVioRBfxcrlP3J8hY6sggXIFfI4v7rc8C+cPYbNP43zEWNVyFY NKq+DzkKzC/ww== Date: Mon, 28 Nov 2022 14:04:13 +0000 From: Lee Jones To: John Keeping , Greg Kroah-Hartman Cc: linux-usb@vger.kernel.org, Fabien Chouteau , Peter Korsgaard , Felipe Balbi , Andrzej Pietrasiewicz , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Alan Stern Subject: Re: [PATCH 0/3] usb: gadget: f_hid: fix f_hidg lifetime vs cdev Message-ID: References: <20221122123523.3068034-1-john@metanate.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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 Tue, 22 Nov 2022, Lee Jones wrote: > On Tue, 22 Nov 2022, John Keeping wrote: > > > This series arises from the recent thread [1] on lifetime issues. > > > > The main point is the first patch, with the second being an unrelated > > fix for an issue spotted while working on this. Both of these have > > Fixes: tags for backporting to stable. > > > > The final patch tidies up some error handling to hopefully avoid patch 2 > > issues in the future. > > > > [1] https://lore.kernel.org/r/20221117120813.1257583-1-lee@kernel.org > > > > John Keeping (3): > > usb: gadget: f_hid: fix f_hidg lifetime vs cdev > > usb: gadget: f_hid: fix refcount leak on error path > > usb: gadget: f_hid: tidy error handling in hidg_alloc > > > > drivers/usb/gadget/function/f_hid.c | 60 ++++++++++++++++------------- > > 1 file changed, 33 insertions(+), 27 deletions(-) > > For the set: > > Reviewed-by: Lee Jones > Tested-by: Lee Jones Greg, is this still on your radar? -- Lee Jones [李琼斯]