Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5290740rwd; Mon, 12 Jun 2023 02:56:45 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5GcTK1ObTgx1xmqms0Xl0eMRcFbEgUxbtUTxVQrOQcltJIIQCdt92rzc/wi7qZ+fWYekgE X-Received: by 2002:a05:6402:550:b0:514:9563:a32b with SMTP id i16-20020a056402055000b005149563a32bmr4676944edx.16.1686563805075; Mon, 12 Jun 2023 02:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686563805; cv=none; d=google.com; s=arc-20160816; b=UX4jMF0Y2zS1Gizmj/Q+XNVdvDGXFuh+boi3qaFbzjUxCNLC02r/Fct2i6VPMqnpy2 R3DJDJt+F/6KVGG0FYubLGbDBOcesSHILqNZzxNpwEMCRIqTj+LwgTo9fV+V+6YUHA/O v0XpU4Qc6he6eODsnogR6irTUoGFFU3lbvOdsTUFd+DlW/bv0E14G3zY1cxsbXqOkqzy rKtftLVKlUqXQgYqPfJrWoBIBuGFfpM3ZpLIxec5B1oBCBvwTEukt6cAnvGISU/FC2tV x9PB1d5O8+PWsnewk6bpB7OF5mpujk6u0aKnqSXzPnumEj14heXSTS5lAVvD6SxY+rNy aSXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=P7/I1ayBoe2EChOWGV7usCqZR+8SIH1+fvVOuYaCd8o=; b=FFJqYxFJWtqjRZ2G9FZvJ/L6dYETJW/1U49WrCy1FOclUSfqgSc94wjh2IJO1ktaX+ wvhCynclizIWOs3KsUjy5t2Ol7BdZOZnYIWAcVQLTMaU6o97OXqK6Q+CE5nus5TVE/bu fo4q0/t9+gjsuBXnCn73XvZMwm65uxWfB9K7rSvrY8smTm8izvO5/PAxrj/xVTyucbU2 oAX1D4UyUaRaEwmg/dKGY4BTZM/uCTte7MwQ7tp2IjDKADitvfDyUogtqR9BL74FFSP2 csWfDPqyZadNeJTWtgTdWFeFs3UtJLDnowmWBT0eg5iIBvD6nijh/fale2L9HVfT24tu 9dSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hQsfbC1h; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h20-20020aa7c954000000b00514b1b04bf1si1741118edt.318.2023.06.12.02.56.11; Mon, 12 Jun 2023 02:56:45 -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; dkim=pass header.i=@linaro.org header.s=google header.b=hQsfbC1h; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232589AbjFLJtV (ORCPT + 99 others); Mon, 12 Jun 2023 05:49:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232785AbjFLJsI (ORCPT ); Mon, 12 Jun 2023 05:48:08 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC876A5FA for ; Mon, 12 Jun 2023 02:34:41 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-977cc662f62so604340066b.3 for ; Mon, 12 Jun 2023 02:34:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686562407; x=1689154407; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=P7/I1ayBoe2EChOWGV7usCqZR+8SIH1+fvVOuYaCd8o=; b=hQsfbC1hfvX/VkT1eqZm5DfS/WywUBfNcsJPDDu4FvXouSS4uGmSjMvie8Y7o22L8n 4PeVe/c0F18vWgnIz3raM4AR0kPeDO2Qbzjnc1UYuuoSoPBynADm400FuJz48W8fVwd2 tdA9yjlFwpO4H3g31t64F5OnsJCLzyI2ShbywFIZ6GW4XehMltmLEuPVXgXOEwikgqTz Yi4/9ru4IUNjZxeg/FnBRwIC0dPNc+DMHIcX94ibRBIilBcsF8bfng+S8BTlHWyzd3ld fNsS9lBggk3nKcLokp4hFOQ2JRXiMwhu8JCn4B7AkRJwMH2lmBf5Sex6BnCNmJ1H++Yp y3+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686562407; x=1689154407; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=P7/I1ayBoe2EChOWGV7usCqZR+8SIH1+fvVOuYaCd8o=; b=TABrIZDrK44goFkGF5c0dbERN/fD6BKggkKh9EPFayB5+CcAhB4Sr5KgitLv7kkbrb 4rZe4NGRVyQu/tDqMAnoXRQGLdydpi1LKHrP0D+fEoo++BMJL5xzxl88iqpL5nKLI4uv L+aOwNQWTLBIuWGrmdREi7vrkB8DB7uT1sts7G5iXY1twCq3rKhxirpTI05O2Q0SSHSD w7/iiLFl+5toa/o0sO+/HtALOGZSFi1OIOADb2GZIuQgGA6kFY6u2GmsIRxXQaJfeJtE 43NppJ+x/pIk7YFNm+5dw1sLaHlsZ25rrGNUY/N+h/T8f2QAmjIAI73TCoViJBiYB8ho wqtg== X-Gm-Message-State: AC+VfDzBZBnH3XSu3teWb8BUA3x4WK45tlSrF4X09HnFEVGNN+Ev3IvD /oFlBOOrzd3wzDjCE0QTMjwFzg== X-Received: by 2002:a17:907:2688:b0:967:a127:7e79 with SMTP id bn8-20020a170907268800b00967a1277e79mr8819298ejc.28.1686562407624; Mon, 12 Jun 2023 02:33:27 -0700 (PDT) Received: from hackbox.lan ([86.121.163.20]) by smtp.gmail.com with ESMTPSA id gj13-20020a170906e10d00b00965a56f82absm4908151ejb.212.2023.06.12.02.33.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 02:33:27 -0700 (PDT) From: Abel Vesa To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Anson Huang , Hao Luo Cc: hust-os-kernel-patches@googlegroups.com, Dongliang Mu , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe Date: Mon, 12 Jun 2023 12:32:39 +0300 Message-Id: <168656228139.662397.489177987320185162.b4-ty@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230411015107.2645-1-m202171776@hust.edu.cn> References: <20230411015107.2645-1-m202171776@hust.edu.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On Tue, 11 Apr 2023 09:51:07 +0800, Hao Luo wrote: > Use devm_of_iomap() instead of of_iomap() to automatically handle > the unused ioremap region. > > If any error occurs, regions allocated by kzalloc() will leak, > but using devm_kzalloc() instead will automatically free the memory > using devm_kfree(). > > [...] Applied, thanks! [1/1] clk: imx: clk-imx8mn: fix memory leak in imx8mn_clocks_probe commit: 188d070de9132667956f5aadd98d2bd87d3eac89 Best regards, -- Abel Vesa