From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C0AC2C4167B for ; Wed, 6 Dec 2023 01:45:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=JQqgeLLm4ca/WY+sxPTlsH7pbQ8bT8GlNLcART9itD4=; b=vWX3z4C1uAji1U Caawg+mM8bAY3r6900xgfKwz6X5pb1QmaZmTFeZg8hG7K3p6lknK7zzCvSvwhCCLZgF8Xy4bETIbe wtslbcLRezEPFIsRBHXCio3WLu678ZU7COa0BVz99NFC2RMlIt0nZ+yXFPDtoWrq+lM8ISGV8GAB5 X1Qr4pNVTOKvg9DnXucoWvggVKyUoMc3zTzdOImuISp5XxB+MxN9IDcQ5t0FRWSsTBMYQ4p8ap8Az B/gaLaz1XuFIBepNjB8XqlajbnExEMoTFiMKlmRSmW1wWUuftkz8wQXuBB8o6v9/gJO08YQaKqKjH TjCGRT/3tDqctAXDQ0Hw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rAgxt-008pHR-1D; Wed, 06 Dec 2023 01:44:41 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rAgxq-008pEw-2D for linux-arm-kernel@lists.infradead.org; Wed, 06 Dec 2023 01:44:40 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id D1A2D61A10; Wed, 6 Dec 2023 01:44:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61646C433C7; Wed, 6 Dec 2023 01:44:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701827077; bh=wpQwyqxs6iklENoKxr6PKDAc6bKDhiqwRadosZHTN5o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NfLDAVsLIEBgeDUXFOjvvrq55JwCjrIfujLhulomKxEQCNbD/oMl1p0DjO89sVXUX V6aYgWjiZaVB1tTbw5bX05t5MCuoHyRQ7wDuQNPx53vfT/AFmlEF2AlUEpunKeQc+H R7ps10K18Ida97oTsdLv5LXqQ1PWNV77/4TKM56PRogBcVjduSM9qAa8rWUlqCpU/w WFxapxhfjTYtbQ3owN/nnT6D+7gZEkgZx1EZnwZPOz8TAyF1F8aSENVfdEyy1LjWvI lNjiS3inI3mmUEkfU0vpf9F45okUTrZaenKJftztDVG7+BkaKs6P1C7vCK2uHTPzke IBMtBiqNfV21A== Date: Wed, 6 Dec 2023 09:44:29 +0800 From: Shawn Guo To: Kunwu Chan Cc: linux@armlinux.org.uk, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, arnd@arndb.de, angus.chen@jaguarmicro.com, u.kleine-koenig@pengutronix.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, kunwu.chan@hotmail.com, Ahmad Fatoum Subject: Re: [PATCH v2] ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init Message-ID: <20231206014429.GB236001@dragon> References: <20231122064636.7268-1-chentao@kylinos.cn> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20231122064636.7268-1-chentao@kylinos.cn> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231205_174438_810760_013B400A X-CRM114-Status: UNSURE ( 7.76 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Nov 22, 2023 at 02:46:36PM +0800, Kunwu Chan wrote: > devm_kasprintf() returns a pointer to dynamically allocated memory > which can be NULL upon failure. Ensure the allocation was successful > by checking the pointer validity. > > Release the id allocated in 'mmdc_pmu_init' when 'devm_kasprintf' > return NULL > > Suggested-by: Ahmad Fatoum > Fixes: e76bdfd7403a ("ARM: imx: Added perf functionality to mmdc driver") > Signed-off-by: Kunwu Chan Applied, thanks! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel