Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp527786rdb; Thu, 19 Oct 2023 11:01:25 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG8ZUpT5y4u15VyRMhXcBxJ1bEcMYx1lI5KNoHv6ecvlWY903IgZDZ/9tC8wm6hGd8+xr8Q X-Received: by 2002:a17:903:42c6:b0:1c5:befa:d81d with SMTP id jy6-20020a17090342c600b001c5befad81dmr3255104plb.10.1697738484748; Thu, 19 Oct 2023 11:01:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697738484; cv=none; d=google.com; s=arc-20160816; b=bI8SkHYiexk64YhP4eaviu/K2lXQEi/CL4T0hCStKhlWOkUhBIPQFZ8D1kzCVBR93C ZbYs+5Sm0ox2wAYaU3viUlW7NVfxqIHG9qSjbBx7BsSzpkPCeYuEDSFD7mWk+eDqwtbU wN9lDxnRA6hA8gsEGMT3vO9y5oOkFSOUDQbM9aGZzNhdSZn7GTyVkdYPggqchBfce4je j/ZezSqR9OetaZW0FqYRDgo1jlQgvxZwbKA/4iIa7uIrz7DnK5O8tWzGPxOOR2EEAU7y fbJTc2Y/p8X6gCDV7dXE4CmrmdWEJUc9k6qD6oNXEsKQ4dfOEIVqbHtwHCWcyfgeFvZG t0+A== 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=bQKWIdgw4i455w9o61G0HPAoGyGV0UimMOuK57GVz58=; fh=hUogS4y43Q5shFQkamxfbs+fpii0nk5QSPTHdU2vMZQ=; b=pitrR8Xj2PICt8fmGj5D2kRj0j89KC03AjJUuwtUbB8lT9ljc1UPQyAznpnS3BqyLL AKrcQSEcDcesWEkmmQy64z2rTgqVd/zuEpjQ+j572Tj5DYTUzPJw3RgpbX8LtoWL97Q2 xFs9E8bpN6q0sZ6ZrAN9qYuy0+ErDTSJFLOGZIB1AnePiA7ijJGTjlO4fqnU6zCcGPYw Cu5y+c73n9z7amrLNPdzAMpwQ5H+5yFdMVssJVBLtnBdb0t63Jw5Mi9KQXpEQFkABcwl qnAdja6EIGnxvO87toqTXukzhhrRce7zZFukViPzqCFSJuStbMhWFgc9I8BnTS6mKOA5 jUgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="FieJ/znc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id p10-20020a170902e74a00b001c60a0a8d2asi8841plf.282.2023.10.19.11.01.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:01:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="FieJ/znc"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 98412835FD29; Thu, 19 Oct 2023 11:01:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346352AbjJSSBP (ORCPT + 99 others); Thu, 19 Oct 2023 14:01:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60244 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235510AbjJSSBN (ORCPT ); Thu, 19 Oct 2023 14:01:13 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 437BA121; Thu, 19 Oct 2023 11:01:11 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57642C433C7; Thu, 19 Oct 2023 18:01:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697738470; bh=qQTrIyHsEzVQTn/wO3KHlIQv0CJhk27aJyh3LDDPcqs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FieJ/zncfrNUNXyIjL2CHES7MJcZFaIzsYkSYSYP8AwY7KX9SNm/C0SmdyBte5dnH r9hhGF1TbE025Iw4h7KJRq0hVwv6oU9pEQBCFIC2HajIqqQXTwlgrYxA3wW4wo9yph t/tG0QqQfdKO87AqqwYf/xYcZhHmfJsuQNPEBbXg= Date: Thu, 19 Oct 2023 20:01:07 +0200 From: Greg Kroah-Hartman To: Herve Codina Cc: Wolfram Sang , Peter Rosin , Stephen Warren , Rob Herring , Jonathan Cameron , Wolfram Sang , linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, Allan Nielsen , Horatiu Vultur , Steen Hegelund , Thomas Petazzoni Subject: Re: [PATCH v2 2/3] i2c: muxes: i2c-demux-pinctrl: Use of_get_i2c_adapter_by_node() Message-ID: <2023101954-desecrate-stock-5103@gregkh> References: <20231019101017.425284-1-herve.codina@bootlin.com> <20231019101017.425284-3-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231019101017.425284-3-herve.codina@bootlin.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 19 Oct 2023 11:01:21 -0700 (PDT) On Thu, Oct 19, 2023 at 12:10:15PM +0200, Herve Codina wrote: > i2c-demux-pinctrl uses the pair of_find_i2c_adapter_by_node() / > i2c_put_adapter(). These pair alone is not correct to properly lock the > I2C parent adapter. > > Indeed, i2c_put_adapter() decrements the module refcount while > of_find_i2c_adapter_by_node() does not increment it. This leads to an > underflow of the parent module refcount. > > Use the dedicated function, of_get_i2c_adapter_by_node(), to handle > correctly the module refcount. > > Fixes: 50a5ba876908 ("i2c: mux: demux-pinctrl: add driver") > Signed-off-by: Herve Codina > Acked-by: Peter Rosin > --- > drivers/i2c/muxes/i2c-demux-pinctrl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Hi, This is the friendly patch-bot of Greg Kroah-Hartman. You have sent him a patch that has triggered this response. He used to manually respond to these common problems, but in order to save his sanity (he kept writing the same thing over and over, yet to different people), I was created. Hopefully you will not take offence and will fix the problem in your patch and resubmit it so that it can be accepted into the Linux kernel tree. You are receiving this message because of the following common error(s) as indicated below: - You have marked a patch with a "Fixes:" tag for a commit that is in an older released kernel, yet you do not have a cc: stable line in the signed-off-by area at all, which means that the patch will not be applied to any older kernel releases. To properly fix this, please follow the documented rules in the Documentation/process/stable-kernel-rules.rst file for how to resolve this. If you wish to discuss this problem further, or you have questions about how to resolve this issue, please feel free to respond to this email and Greg will reply once he has dug out from the pending patches received from other developers. thanks, greg k-h's patch email bot