Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1513159rdb; Wed, 20 Sep 2023 11:07:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF0/UHujfyuQ+GO6i8ga79QiQ1HMgZHfaZcz8kIEz+U2hifp2ev3/mTbYsVFni8ZFH07GZM X-Received: by 2002:a17:90b:1002:b0:25d:eca9:1621 with SMTP id gm2-20020a17090b100200b0025deca91621mr3235819pjb.6.1695233266085; Wed, 20 Sep 2023 11:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695233266; cv=none; d=google.com; s=arc-20160816; b=RtAmCRNzhoj87YSQylrAm1NZIkNraQ3q/S6P0u/oHhTDvkLZIxXMHOEYDbXMaU8IDA WGdqnP+Mu62/c3eknV0aEPXK0Dpnl7neG9U2jyF7ooVorTr8JI81DmHroTk1+tdMrwI3 ECXLaVAgO/JqbppA/uhu79s2N9s84ToMhCQz3yFlacZa7s5ij4QajRHMLvm0Lzj63rAz dtMbmW1ziC97GFdL/iysajRDfd4gXEcyaJCTKZqgg77FZVvX3ekcEamQHkbSrwGvqoYK phJ6/uWDL/aCowhMVxn3jg8AJ4Cl/dedyEX7Xxl9n95yIy7HilWvmv8iovNFy3/dcGh0 Nd3A== 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=xoblckIojS6y0JkZP9TtW/wDxU/2kxcn+d63ktP89YU=; fh=Y1306iCsSSO9NNUJp4JiFv3C/ufdVYVKoAjtXLcs7XY=; b=1CzfoOrushaZMK0J6iVJl08DZ/Uv6ZVGUfCyuh8kMFDLyK+eu0UMroFC5uUbFh8sXh 6fSkuLOLLukS16/4bpZuAsLyIk0asKJ5kUwRZgWVrOfToiWNeMryucRjSIAiJvToO7oh hwUnNFKdYnt1kT5iFLNBk8q9syoeH1mAOEJHVQZ5mniSAqVvC+veNo+HVzbwmHOkKHBp leL0tcMfI7XJTCAIIJvmwhD2t6My+pikVluwdZPD9jdcQbIZ2JhI+/IQoADQGLIrHh87 p4ppO88CSuteBIBFKUsl1NNGgCRZTdYHaWGptUDVNnF6zwAXOfrWLpMEOF5HDd1N9+fc 1X6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rT39YSNS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id gc19-20020a17090b311300b0027450695a78si1925230pjb.172.2023.09.20.11.07.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 11:07:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rT39YSNS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 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 morse.vger.email (Postfix) with ESMTP id A9A9F80BB5DB; Wed, 20 Sep 2023 06:19:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234776AbjITNTD (ORCPT + 99 others); Wed, 20 Sep 2023 09:19:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234856AbjITNTB (ORCPT ); Wed, 20 Sep 2023 09:19:01 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 00165F1; Wed, 20 Sep 2023 06:18:53 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1A9BBC433C8; Wed, 20 Sep 2023 13:18:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1695215933; bh=nnli8MSSDfrHelQBb1r0L2vDbqp6oxZF8KrvopPllR8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rT39YSNSJy9ytpnr+AgC5ujreaHYT2PClmB4Pgp4Sf0W5RLeVqpM7KXRJZgOeLhHd mn4nJmrl4//blN3GDaQaP7gXVo9vZlAPFU4bvbFXUHq8ZDuyqbCGHE1krFxZ/Zxauy 0UEj3vJ+7CsEO/6WGGTzrr+NjsnSO69o+puz2yso= Date: Wed, 20 Sep 2023 15:18:51 +0200 From: "gregkh@linuxfoundation.org" To: =?iso-8859-1?Q?Rodr=EDguez_Barbarin=2C_Jos=E9?= Javier Cc: "jirislaby@kernel.org" , "morbidrsa@gmail.com" , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jth@kernel.org" , =?iso-8859-1?B?U2FuanXhbiBHYXJj7WEs?= Jorge Subject: Re: [PATCH v3 2/2] mcb: use short version for function pointer for mcb_free_bus Message-ID: <2023092000-overprice-guileless-e1a3@gregkh> References: <20230906114901.63174-1-JoseJavier.Rodriguez@duagon.com> <20230906114901.63174-3-JoseJavier.Rodriguez@duagon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230906114901.63174-3-JoseJavier.Rodriguez@duagon.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 morse.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 (morse.vger.email [0.0.0.0]); Wed, 20 Sep 2023 06:19:06 -0700 (PDT) On Wed, Sep 06, 2023 at 11:49:28AM +0000, Rodr?guez Barbarin, Jos? Javier wrote: > From: Jorge Sanjuan Garcia > > Just a style change so that the device release callbacks are defined > in the same way for devices in mcb_bus and mcb_device. > > Signed-off-by: Jorge Sanjuan Garcia > Co-developed-by: Jose Javier Rodriguez Barbarin > Signed-off-by: Jose Javier Rodriguez Barbarin > --- > drivers/mcb/mcb-core.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mcb/mcb-core.c b/drivers/mcb/mcb-core.c > index 0cac5bead84f..5c6157b0db75 100644 > --- a/drivers/mcb/mcb-core.c > +++ b/drivers/mcb/mcb-core.c > @@ -288,7 +288,7 @@ struct mcb_bus *mcb_alloc_bus(struct device *carrier) > bus->dev.parent = carrier; > bus->dev.bus = &mcb_bus_type; > bus->dev.type = &mcb_carrier_device_type; > - bus->dev.release = &mcb_free_bus; > + bus->dev.release = mcb_free_bus; But you aren't fixing the root cause here of an incorrect pointer being passed to this function, right? Yes, removing the single variable is nicer, so the crash doesn't happen, but you are still passing the wrong pointer around, so why not fix that? thanks, greg k-h