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 C209DC433F5 for ; Sat, 23 Apr 2022 19:46:19 +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:Date: Message-ID:From:References:Cc:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=B9bct/8nPi7QdBWInjUwQ6z+K4kmbLT9NHy0UnYEh/E=; b=ZVcNS/iUYsOgyAY2OO/0MW00Hr ROSHT3vbz+hOzquv+AHFLCYbbjcID/2+EDdAWVJr1SDc1qXV2ElPpv35PQvnYMuuV52ToWDquQvjN WW3S8y7MJ2eBr1h30Gd7ehxKxJ+MceThLfehWCLqQ99UfJ2tJILjpfC+21FI6dMKc1ADXOb07tw9q 8Qq4I76wMS5hkYG9ncTEBxHovNb77h8pZ0T7fbbHihBlvd/pX0Lzf84gdjayOMYVgghkDTXD6rXq2 KrOmO2Wl7iwwRpm598zPSh/OFABweTr8x78saEWTXACWHhfDLeyqaxta+t2DXPOnfi3F1SqnJX/pi Q9W/SMjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1niLgt-004vbr-K5; Sat, 23 Apr 2022 19:45:11 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1niLgq-004vbV-Gv for linux-arm-kernel@lists.infradead.org; Sat, 23 Apr 2022 19:45:09 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id A59735C013A; Sat, 23 Apr 2022 15:45:07 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 23 Apr 2022 15:45:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= cc:cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm2; t=1650743107; x= 1650829507; bh=h1ToIWPq6OSSwLnJ0g8sY57Xw3btjZPjZHe3fJxISP0=; b=q jK62bDYmKLKKt7KIUq6xRKJoE9LOG6WmubRZJw6MAXLxh0+w3zCbfVsCN3BJEP4O DP4Ynb1murUnVqduMpPcpfywxEomaHp3YoKKy2GK9P0CZWW0FCuo9+ikOMnC7Ruh m4JUVTbVikFl2YjVMP6WKilRp4u/nSNuUDETgZ1nUi5RvqTh5qUdqQ2/4msX+FZE AotYMdHyAunPRRIPCLi3WyJvIm75bCQY+UgIj4qrQ4ISd/cQNr+gs1EVda7H10xx Q2Apl+gfgJm1JCaAD5F0RHv4EbiE+KYqrm7yqBzyfts0zmqV0FTQxhVwuQg+5Ayp CAG1iwHnR8KxLQ6bVy24A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1650743107; x=1650829507; bh=h1ToIWPq6OSSw LnJ0g8sY57Xw3btjZPjZHe3fJxISP0=; b=wJiL1f87DzHpR5NY7Vmu0j2wSacSG vg30qER4x3PQEpEjXZ5WtXA+PVm1kjxHWyfMBSWj3U6jj9ZjOLFvoFWtYLe6e52D CwKAezzvsJvbEtAomXvIWJg7c3hQm8UiMYk4EDDbkdDlkIoZkj361LwyNP0fI3s/ gCjF/fXsgg2OjK2xWjQyGBOMzHaz+7sdXTVpT2dTUREa5DH/NPDCBT/1nOevNgCa H5GAMbtS/SqCMPkGqx7SW7IxNGOJ8oqHB+8MhwfmQxIUfl6wPfat46HkH1yEehN6 YBxJqs5d64vVsuK9XCzTrZyR3/yzVXWKrfv0dTLxjytjZfwD5/cVXT4eg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrtdeigddugeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvvehfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefurghm uhgvlhcujfholhhlrghnugcuoehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhgqeenuc ggtffrrghtthgvrhhnpefftdevkedvgeekueeutefgteffieelvedukeeuhfehledvhfei tdehudfhudehhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehsrghmuhgvlhesshhhohhllhgrnhgurdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat, 23 Apr 2022 15:45:06 -0400 (EDT) Subject: Re: [PATCH] clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource() To: Yang Yingliang , linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org Cc: wens@csie.org, maxime@cerno.tech References: <20220421134308.2885094-1-yangyingliang@huawei.com> From: Samuel Holland Message-ID: <9ebabc53-72de-bbec-895c-fa3760ed5374@sholland.org> Date: Sat, 23 Apr 2022 14:45:05 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20220421134308.2885094-1-yangyingliang@huawei.com> Content-Language: en-US X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220423_124508_683637_43B0F7FD X-CRM114-Status: UNSURE ( 5.92 ) 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 4/21/22 8:43 AM, Yang Yingliang wrote: > It will cause null-ptr-deref if platform_get_resource() returns NULL, > we need check the return value. > > Fixes: 7a6fca879f59 ("clk: sunxi: Add driver for A80 MMC config clocks/resets") > Signed-off-by: Yang Yingliang Reviewed-by: Samuel Holland _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel