Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp527560rdb; Thu, 19 Oct 2023 11:01:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHctfZLMBNBjx1Xp5MzPNsNFmaFbkvXNf3IJ4HmuY1FEhEjLqav/xiMT6bmp4IpnUG50Qy2 X-Received: by 2002:a17:90b:f07:b0:27d:4f1f:47f6 with SMTP id br7-20020a17090b0f0700b0027d4f1f47f6mr3016031pjb.32.1697738466836; Thu, 19 Oct 2023 11:01:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697738466; cv=none; d=google.com; s=arc-20160816; b=zB26muwydpFPyfC7B4uvW7pPx0bYAT2gMsHLj+/ZgZi3A9enN91AjXxCRXy5zcCm/X SgOzkyP3KGclBrG01dS8nt0UfTIDlgLfGev2EmOtEk3fVeR7WZ57NQ4d1om58NKcOswv YsW+2tdz02rAN3HYSznP/mXSS+KhKv9BQSaqBaPzKMIdE3qHX3BUAPPl33X1Z0ZAyM3l rLFCF56rPqpB6PbbE9AB3RaQRQ0AZ56jzS5DVDWFdf4EMy6y2Zy0xqREkaerJCVSdCXX Q1g4WFj5+/u+k+udTT40y6/0XIyexTPwHKU93HL47Nri2S9sU+VMBqkp4sxPUvosLVix +uWQ== 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=MSDGcbvZUlKEgXsCaNYb96LTV9kWYvLP9pTqCYxIroA=; fh=hUogS4y43Q5shFQkamxfbs+fpii0nk5QSPTHdU2vMZQ=; b=QVzJy3Y5V+CrEQWUk2eVfrhp0kU6CEBK4ox8yXMfkGxhu0DuDuupN9glxz8FgsrjA3 mwrSH3T7RPbQKXddpjIJX2pMgQs9VTaEblbgpdfOZ4jd5/7bRVMeS7Z6puxron3C7fA9 UvWOztFh0xSWr7brTyKLTqkZ6c3UED92FDGyf4iYU/N3hN1+5u84Wl9iQV/PS1lKd6tO nYayQnzZmsMteNLKZSwgA+/w0UQhxlfSEd3ue7cl8ztadqrbdR6k4B6CuE00Pks6812l b9ILFPjbpROJH0hayD9sPDerFGzPQdyYQdF8RSX1869AiUCJonnMxF1ptUZt8ifxB6nS xqKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Xj94a/U1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id i190-20020a6387c7000000b0057c2f614756si98300pge.212.2023.10.19.11.01.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:01:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="Xj94a/U1"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id 8AD1C81CE87A; Thu, 19 Oct 2023 11:01:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345484AbjJSSA4 (ORCPT + 99 others); Thu, 19 Oct 2023 14:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52112 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233277AbjJSSAy (ORCPT ); Thu, 19 Oct 2023 14:00:54 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47990E8; Thu, 19 Oct 2023 11:00:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 547BBC433C7; Thu, 19 Oct 2023 18:00:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697738452; bh=+FyDtyWcuCnprH8jFHLYEJPmSQmSmtD8vcG5l6YPWe8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xj94a/U1j28KHEPDtyhmKGYEDtpli/UhCR409osS7AbBHQHWVk8LS7HEiXPzJHVpH Q8Lck0q0+VAXkNdR+GZvnU0FW2TOK3vumCB8g7y/5CK1F7lJegjMbshqhJ8rVHF15h S+7fEpitiosCyZe2iWdlwzfrKOhcZ+1Xaaa0h9SQ= Date: Thu, 19 Oct 2023 20:00:49 +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 3/3] i2c: muxes: i2c-mux-gpmux: Use of_get_i2c_adapter_by_node() Message-ID: <2023101926-commend-tubeless-2f6a@gregkh> References: <20231019101017.425284-1-herve.codina@bootlin.com> <20231019101017.425284-4-herve.codina@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231019101017.425284-4-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 pete.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 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 11:01:03 -0700 (PDT) On Thu, Oct 19, 2023 at 12:10:16PM +0200, Herve Codina wrote: > i2c-mux-gpmux 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: ac8498f0ce53 ("i2c: i2c-mux-gpmux: new driver") > Signed-off-by: Herve Codina > Acked-by: Peter Rosin > --- > drivers/i2c/muxes/i2c-mux-gpmux.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