Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp650577rdg; Wed, 11 Oct 2023 01:13:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHHrmxFlwuRiDV9Zkd7o9pU/8J7+b2v5r9J3mRQgFJ8Fyew2gSS0m1kHcN0qQ+7ASXj5uGu X-Received: by 2002:a05:6a20:8f0e:b0:16b:f8ef:f31e with SMTP id b14-20020a056a208f0e00b0016bf8eff31emr13450474pzk.5.1697012007110; Wed, 11 Oct 2023 01:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697012007; cv=none; d=google.com; s=arc-20160816; b=o8rQBef90SRgR84y5jkFhlP3tNapgYa5UXUC8omCrCChoS8ww1tUYkDQBN1CxjsE2m GfxXCpH70HJ4aAPTpW57pMwopEv/q9Xtpp0iMf9TleXCAAGiXNdgyWDUbhry6AcvZn02 UuHV+Tw7sFh+4mJN2MH7fvkKZz7ppvQoEe1jRyqjG10dmoDDHSXWgCj52JWi8PcRvIfn YNdRb+I/EAwv3RsyWG0vDDqw2n70UafRMSKKzU7gihhvQG6CQ0FordGnh6BJXfWgPvO5 W8+HElxfq3goTZR8Dj4PAXtsvlBnbo3cnT7PcUXWIFMGpdHcY8K0GUq/7VW0N3CsXToS 7JiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=B6f9PxZ7NB59nQPPxoemJYzPYh8nDFeCaDnmWpNpHKU=; fh=u0uVofYrQe24fifBjBDuKMi3NIEr6GS4BTohmOIx2Ug=; b=LF3w2khz9zrWBhsy1SGsL8V5gOq377rzz4fBuWCqT0m1vYJL9o6ebufQeWcH4wR1Rq yJbEc/tVUvMNtUU9qfe30PzFfkXUNaB3Hb796zkW0yfB3pnkgIeiOGZL83dCNZlHJP7/ 1mHw/Uic6ZRB3guBTR3rlcoHdalkEwYZ1IEXOc3X0O4adpHjCY41ZH89jNl8U5Pru4ih woD0F0fBiil+T2Ce1Pt0UV/gkgv7O6T3tZx6sxppB32tN7csiI/t6g3RnPDyzy9L1lr3 5i70KwQp3JbUPheYquXM7jl23m81Z00itVUA1X7liCC2OFnXc5wKkbyRj16Pu7Jt+2G5 uCyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HsktuYPF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id np1-20020a17090b4c4100b002740f8fa612si14816661pjb.21.2023.10.11.01.13.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:13:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HsktuYPF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 20E83801B6E3; Wed, 11 Oct 2023 01:13:24 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230341AbjJKINQ (ORCPT + 99 others); Wed, 11 Oct 2023 04:13:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230469AbjJKINI (ORCPT ); Wed, 11 Oct 2023 04:13:08 -0400 Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DAB8183 for ; Wed, 11 Oct 2023 01:12:55 -0700 (PDT) Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-406618d0992so63081155e9.0 for ; Wed, 11 Oct 2023 01:12:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1697011973; x=1697616773; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=B6f9PxZ7NB59nQPPxoemJYzPYh8nDFeCaDnmWpNpHKU=; b=HsktuYPFfKtG3ofm6cSE1zIo2kAToTNI3tBpAWpGJB/J8SuObZdn6Qcy2pi80HhsUF Bt6ORLMUzumAOhPXMFl8M7C02pK2SNfB4uRHrJVXNs3Qw4NP/OPUQAO7EL6VR2IT9ozb IDyh5+9sxvkFU1WCndu6DcMpkQoHrF78QzFmvoqHXktKW8HA28S24pCseWCPLMTCfKKl tOIN+4tJEGjRLiHuN+58R0BQ6FoeO9FzOBemHAu0g+eaKRxXNg4YoP6dpl8RQURpsvFL ZhRCywU+GIC0hyL15yOvl2VQ3fcJAnMRGS3yMIs+RwBmSg6ypIlpcDK510mavuX/JDaE +1gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697011973; x=1697616773; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=B6f9PxZ7NB59nQPPxoemJYzPYh8nDFeCaDnmWpNpHKU=; b=K2ZUBtUMDCBD0Y6webZzIlVG3U7aopruAB3M7ekckcqa7jMdnLDxKlwjed/FbgStim CBNCPmIgqhl226FrXmApKJJV+rfjkzRchxO5qUYXXe141c8hrQxHPjEVMh15f9x8lsxj z5ONEMA1l16l41+EAmHUlbbt1f4hOz7J76NB7gwpBDNuyuMo7ZETT+7njrR5dHduXYCG 4PzzxzMj5gJi3mNbq1GcjhcKqOI9j3k1Zhwrxdu2D3+ggnnJp2SWNoFPx4ClG+GpW/N0 B37DhNwk9crvSYCsrtno2pAxLEcjMOKTGuvGU5/zsP6I8q5w3RSVywcT5GY4W+ifagwP gVGQ== X-Gm-Message-State: AOJu0YzAQAkly/XUYI355yQAgEdrz/ZiQ2u2gAzLQLwqNCIoyg7N/V9P nmkTLDur03EF0X68mzP5nuM5Lw== X-Received: by 2002:a05:600c:2946:b0:405:4daa:6e3d with SMTP id n6-20020a05600c294600b004054daa6e3dmr17784632wmd.39.1697011973220; Wed, 11 Oct 2023 01:12:53 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:de95:eca9:6b1e:b330? ([2a05:6e02:1041:c10:de95:eca9:6b1e:b330]) by smtp.googlemail.com with ESMTPSA id t14-20020a1c770e000000b004054dcbf92asm15989831wmi.20.2023.10.11.01.12.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 11 Oct 2023 01:12:52 -0700 (PDT) Message-ID: <2f8c8511-f358-4c7b-8d07-29f072ee9bdb@linaro.org> Date: Wed, 11 Oct 2023 10:12:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] clocksource: timer-imx-gpt: fix potential memory leak Content-Language: en-US To: Jacky Bai , tglx@linutronix.de, shawnguo@kernel.org Cc: kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, Linux Kernel Mailing List References: <20231009083922.1942971-1-ping.bai@nxp.com> From: Daniel Lezcano In-Reply-To: <20231009083922.1942971-1-ping.bai@nxp.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:13:24 -0700 (PDT) X-Spam-Level: ** Hi Jacky, On 09/10/2023 10:39, Jacky Bai wrote: > Fix coverity Issue CID 250382: Resource leak (RESOURCE_LEAK). > Add kfree when error return. > > Signed-off-by: Jacky Bai > Reviewed-by: Peng Fan > --- In the future, add lkml@ in Cc also. Also the subject has the format: clocksource/drivers/ : [AZ].* Applied [with the subject fixed] Thanks -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog