Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp528005rdb; Thu, 19 Oct 2023 11:01:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFyQjBQXezkYD5buKbVi33v0/GwjtOD1X74uJrPBWBGtWj+SUbZ6zO0POL0PHvFifkNwEkr X-Received: by 2002:a05:6a00:1ad4:b0:6b4:6b34:8ce0 with SMTP id f20-20020a056a001ad400b006b46b348ce0mr3059844pfv.31.1697738500979; Thu, 19 Oct 2023 11:01:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697738500; cv=none; d=google.com; s=arc-20160816; b=aZmTiGDHqeEypSG9nM2JiqAMZo9p4B/K74xfSXXvZvn4EKVTsI5cflgUzRajAhAnwi QZ98tp2CXbFflMv3cj81ETTxoWtJ39CZ7EqnzlZ206bhw9+ABbfrbX9pCXhK5ZRxZL0a RfEG/cFGgS3rzmR5HfyIqN0QCJFdfB1adMnLzJ4XlppWLPeYc7zDBXGZKQ37FsL1GmcL oG4N2scqz3fdfUxZE2NpG4nsM9X9m22JmgDlSmM8h6aEfT7CzZOwiNBIFYeBIKtyAQl1 HeJgoswNO86Ynx8nP+CGjAHcu6BBqIEGOeb+b3lwAfgwkIr99zc+IWrlQ4SO7nOzldxK rfrg== 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=DMA1/SaoNt9gDYnxayg3IOpiqNKTTjSiSd1kArLgZ3g=; fh=hUogS4y43Q5shFQkamxfbs+fpii0nk5QSPTHdU2vMZQ=; b=tyYj/hwbs7H2s+qSTnehcB0fjCnhzXprhM2kaThiTPbqpHCUYKQXzkdP+zOMNdnIWX BqK4xb/zuuISecrShyfhuVqTvB7sjN9Y4q1ID9UEspKyRHBlZYU8NdvzWnWj5SviBXSq ocm/Qzex7eorfBW+kGld2IH+8qBWFadG8rE2rbCFh6HyHoM04hDW8Viwk7l6QF4yyNQf 5JThgWcoRyYxUULtgkKdGdlYwNJgBKcEabXs3KPpVxk0GgqBqsQkzcZc+wSQV3UrG04q wA5czRB3B4IAR+o6qX8WomJJxy+Un7YmjKxYn5YmTLKGLEk3N+JJRGa3vjAGGClPaBW/ IEeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xD2uc9x0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id o9-20020a656a49000000b0058bc1c85714si99717pgu.467.2023.10.19.11.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:01:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xD2uc9x0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id 710508269199; Thu, 19 Oct 2023 11:01:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346346AbjJSSB3 (ORCPT + 99 others); Thu, 19 Oct 2023 14:01:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232935AbjJSSB1 (ORCPT ); Thu, 19 Oct 2023 14:01:27 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CEEA11D; Thu, 19 Oct 2023 11:01:25 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA7D6C433C7; Thu, 19 Oct 2023 18:01:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697738485; bh=1Nzo1DkDeze8wKnS+Dv2NUZ4cNNCYVQmoIZRdnIYbLc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=xD2uc9x0nKongkA+Is7lawjr/sWbSTsJpQ3A4MYI8BheIQA96F7ZUBW14RUrHJNsK NbT2dF4HRtDeBMIqvSJPmje18SdRzL2JtfOw1efQXV0GjCCKVwqGHOhuJ6DYMefSuN mfmDOoJvtjY/cblWFXh3sAYiRWJDtfQ4rPcH+igM= Date: Thu, 19 Oct 2023 20:01:22 +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 1/3] i2c: muxes: i2c-mux-pinctrl: Use of_get_i2c_adapter_by_node() Message-ID: <2023101912-managing-perfectly-69fd@gregkh> References: <20231019101017.425284-1-herve.codina@bootlin.com> <20231019101017.425284-2-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231019101017.425284-2-herve.codina@bootlin.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 19 Oct 2023 11:01:34 -0700 (PDT) On Thu, Oct 19, 2023 at 12:10:14PM +0200, Herve Codina wrote: > i2c-mux-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: c4aee3e1b0de ("i2c: mux: pinctrl: remove platform_data") > Signed-off-by: Herve Codina > Acked-by: Peter Rosin > --- > drivers/i2c/muxes/i2c-mux-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