Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp1795741rdf; Sun, 5 Nov 2023 15:02:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IGpIZXz/DcT2ABYM4BtsGM5+KnJQiZyIwZ341yRD/BUKXnKckwLRAycvEM0NcKM4YeSQU1F X-Received: by 2002:a17:903:2310:b0:1c9:d46e:d52d with SMTP id d16-20020a170903231000b001c9d46ed52dmr32835415plh.64.1699225334576; Sun, 05 Nov 2023 15:02:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699225334; cv=none; d=google.com; s=arc-20160816; b=l8mMw8IHPL5WUrIOYgHMBVa9Vq3bEaEYr/Usy1W+20BgEhnGkTpQwlKclfM7l5YaFA Ub6vTBOn1xBEGGK7dy969SCKacl3RHtdapoyFpQ3kRtvD5MdWAuduoWX69jCsAMH2xEk R1/K59GX97u6G+45Rvp9w5zRUzU91yOJNQrVq3bR+OQnfxMrj1ce3qeIa9xdDCQiLYsV fQ8JjJFcwKuBlbydpt7Y/jYHX3kyUaILkSXNCT6O5FBOI2tUGf91IIoTktNxtLymZ6iP wKvJILyNfU60/1rLbEiopD9MRtVY2l7kQD62qvIwABKuioPQtXJJWWVxdiuuheV1Yz/6 qk/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=04hJQYLWQCJ4CRv9lZP5YG9RTCflGKtfQuIl4H68cJI=; fh=MQKibY1gp03oHfoDc5Rz7YuTEvyytF8k3oA40d6PJLM=; b=sb1CTktB8LXT5B91W2Ei/4XhFYtyrunsEduDqvUz+SsKFWcOLpdmIPGKFcKrF3ZK+5 /XU8r9Peedqjs51gRcXDnvX27x7WZN1uIPVH6FZAErj8cyRfyOcSgy6AH2mhCR1h0hBK +vv9DVUTnrwCAkbn8wznuFmUJ88iyHSV+R+ljSYzKM7ppXaB8G1d0JaRPS3QHjYbdvx2 oi8wyRU+RPrXiwA9kCst9WKBx1Nyvc1QiYjhiXhQXkO9BvNXftKGgGksI9d+Akvl7q+S iuwJec4d/Ss0xOnuT4XcmGfPJiEafv/CKDk/4eQhdbqqVo/ucC/Xw0JUWN+MfZUB3aBI 2fVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b="CQY/Yg8t"; 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=codeconstruct.com.au Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id iw14-20020a170903044e00b001c572ccd45bsi6644924plb.391.2023.11.05.15.02.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 15:02:14 -0800 (PST) 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=@codeconstruct.com.au header.s=2022a header.b="CQY/Yg8t"; 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=codeconstruct.com.au Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 5E8FA807C55C; Sun, 5 Nov 2023 15:02:12 -0800 (PST) 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 S229717AbjKEXCG (ORCPT + 99 others); Sun, 5 Nov 2023 18:02:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229447AbjKEXCF (ORCPT ); Sun, 5 Nov 2023 18:02:05 -0500 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CADB5B3 for ; Sun, 5 Nov 2023 15:02:02 -0800 (PST) Received: from [192.168.68.112] (ppp14-2-79-67.adl-apt-pir-bras31.tpg.internode.on.net [14.2.79.67]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id A739120075; Mon, 6 Nov 2023 07:02:00 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1699225321; bh=04hJQYLWQCJ4CRv9lZP5YG9RTCflGKtfQuIl4H68cJI=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=CQY/Yg8tFzkQ/t8U2VI16F8ktZiHrqYp9yZeDdh9PWOedddtBl79Pc7c4BlxqT7v2 GsFrlEGexwSYOP9ozh8142zA5HL2cTdQcza5TUEPGK1/P8AmU8d7bA7elx40t8zGna m/U4svtuVn+5ea/jsEAy9hkO8GTo/u+jRfdwPTGfgBw7LyWUaXRCBe1o/T5MVkUM9I j/HHagzuPjOIonpETGlrOU6YY6OxWpZt2q738n6uT2AC9edhGFsxNzRsqG4rqFMW7z GJwlq0Yp6YDzH3z4fjIq1j6hFPWLwLiT67TstHhcpQokg7/xo4KG0G+PQ2rYcLOPga 0pWkZSFo4mKdg== Message-ID: Subject: Re: [PATCH 07/10] ipmi: kcs_bmc: Disassociate client from device lifetimes From: Andrew Jeffery To: Jonathan Cameron Cc: minyard@acm.org, openipmi-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, aladyshev22@gmail.com, jk@codeconstruct.com.au Date: Mon, 06 Nov 2023 09:31:59 +1030 In-Reply-To: <20231103145129.000067d8@Huawei.com> References: <20231103061522.1268637-1-andrew@codeconstruct.com.au> <20231103061522.1268637-8-andrew@codeconstruct.com.au> <20231103145129.000067d8@Huawei.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.4-2 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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]); Sun, 05 Nov 2023 15:02:12 -0800 (PST) On Fri, 2023-11-03 at 14:51 +0000, Jonathan Cameron wrote: > On Fri, 3 Nov 2023 16:45:19 +1030 > Andrew Jeffery wrote: >=20 > > KCS client modules may be removed by actions unrelated to KCS devices. > > As usual, removing a KCS client module requires unbinding all client > > instances from the underlying devices to prevent further use of the cod= e. > >=20 > > Previously, KCS client resource lifetimes were tied to the underlying > > KCS device instance with the use of `devm_k[mz]alloc()` APIs. This > > requires the use of `devm_free()` as a consequence. It's necessary to > > scrutinise use of explicit `devm_free()`s because they generally > > indicate there's a concerning corner-case in play, but that's not reall= y > > the case here. Switch to explicit kmalloc()/kfree() to align > > expectations with the intent of the code. > >=20 > > Signed-off-by: Andrew Jeffery > Bit more unrelated white space stuff in here that ideally wouldn't be the= re. Ack, I'll address that for v2. > Otherwise makes sense to me. >=20 > Reviewed-by: Jonathan Cameron Thanks, Andrew