Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6371965rwr; Mon, 24 Apr 2023 19:24:47 -0700 (PDT) X-Google-Smtp-Source: AKy350bcHQApNVcIC+kEHCaHjQUZnT3MO2q8qOhdXCdD6rjkzDOng+1spsg8NtxinSAPxuP8fP39 X-Received: by 2002:a05:6a00:23d2:b0:62a:c1fa:b253 with SMTP id g18-20020a056a0023d200b0062ac1fab253mr21599102pfc.31.1682389487554; Mon, 24 Apr 2023 19:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682389487; cv=none; d=google.com; s=arc-20160816; b=UKPHYX8atQvmv8O554zfWsKVY/hLFOQRdoTAjftGdYxqwLqA0F6ubVS+Ge7W9Au/FF 4Y2pFXfyu9rlq3WajN8BYpVlv7pxL0XZBVyVWtvVAqznysAIvpnpqYg4schPazWAFFCJ RLaozI6cYzTX12zxcSJjxC8VhyjDATNkevC+eg0CHKhrSNQOTPo/hX8FbGCME6kcwSxv 3iru2tNASGx707Gk/62NO3nZ/4GB2ez3qEzbggHBoawNAmbrpZ9PJYUllUhgWkUxgJmy mFbKEOD657ehiaf6B4iJbqi7pa/DOkt4E0o3lxxQOPyP17SMg9Ox6KExuEOuTDPEQ2Y+ URdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:mime-version :content-transfer-encoding:references:in-reply-to:subject:cc:to:from :date; bh=7Zhom9rIZ0+3doDmWMm5/qCLdAzAg/yWr1mPuh+HJyk=; b=x34lSkJTsBwiDsyGgvV9IGSNKph/2In3lQEaFb2iAJbTfTFm6O9DJidFSgjgmgqhBV Z7f1uaJWBqcijwkk7GkSn7Xtv1QJMdKfocNBTodEKzu166+fOogS7qU8VgY2/MSJmiiw 5r5MeCupBZ17sjqCTS+FQ3YNCIGUaUCWUrTjowN1G8WPbdY0ZHnqisVqTvQrdX01vVHo VxCamio+6/sczTexDJQ82x3zabj2xi92Wv/XQwc8WDA8dxJb0cxxZySrPYoV0CEU9mf3 57mhels5p/Ma5YZIbnuxLuNLbiAlibKm8m+YLJAz79gwgskMKZ0itD1jIw/dUReeNyXH IUHg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d72-20020a63364b000000b0050faea11f35si12958271pga.302.2023.04.24.19.24.33; Mon, 24 Apr 2023 19:24:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233231AbjDYCHf (ORCPT + 99 others); Mon, 24 Apr 2023 22:07:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232950AbjDYCHe (ORCPT ); Mon, 24 Apr 2023 22:07:34 -0400 Received: from hust.edu.cn (unknown [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7B7CE55AF; Mon, 24 Apr 2023 19:07:32 -0700 (PDT) Received: from u201911681$hust.edu.cn ( [172.16.0.254] ) by ajax-webmail-app2 (Coremail) ; Tue, 25 Apr 2023 10:06:26 +0800 (GMT+08:00) X-Originating-IP: [172.16.0.254] Date: Tue, 25 Apr 2023 10:06:26 +0800 (GMT+08:00) X-CM-HeaderCharset: UTF-8 From: =?UTF-8?B?5ZGo5biI5b63?= To: "abel vesa" , "peng fan" , "michael turquette" , "stephen boyd" , "shawn guo" , "sascha hauer" , "pengutronix kernel team" , "fabio estevam" , "nxp linux team" , "bai ping" Cc: hust-os-kernel-patches@googlegroups.com, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: imx: clk-imx8mm: fix memory leak issue in 'imx8mm_clocks_probe' X-Priority: 3 X-Mailer: Coremail Webmail Server Version XT5.0.14 build 20220802(cbd923c5) Copyright (c) 2002-2023 www.mailtech.cn hust In-Reply-To: <20230413032439.1706448-1-u201911681@hust.edu.cn> References: <20230413032439.1706448-1-u201911681@hust.edu.cn> Content-Transfer-Encoding: base64 Content-Type: text/plain; charset=UTF-8 MIME-Version: 1.0 Message-ID: <2038e5bd.42407.187b62983e3.Coremail.u201911681@hust.edu.cn> X-Coremail-Locale: zh_CN X-CM-TRANSID: GQEQrAAXaJWiNUdk9uLZAw--.56301W X-CM-SenderInfo: zxsqimqrrwmio6kx23oohg3hdfq/1tbiAQsMAV7Em5P7UAACs8 X-Coremail-Antispam: 1Ur529EdanIXcx71UUUUU7IcSsGvfJ3iIAIbVAYjsxI4VWxJw CS07vEb4IE77IF4wCS07vE1I0E4x80FVAKz4kxMIAIbVAFxVCaYxvI4VCIwcAKzIAtYxBI daVFxhVjvjDU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 CgoKPiAtLS0tLeWOn+Wni+mCruS7ti0tLS0tCj4g5Y+R5Lu25Lq6OiAiWmhvdSBTaGlkZSIgPHUy MDE5MTE2ODFAaHVzdC5lZHUuY24+Cj4g5Y+R6YCB5pe26Ze0OiAyMDIzLTA0LTEzIDExOjI0OjM5 ICjmmJ/mnJ/lm5spCj4g5pS25Lu25Lq6OiAiQWJlbCBW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