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 413EFC25B4F for ; Tue, 7 May 2024 09:35:01 +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=W7tZg4+cnz5W7c1qrtzdj3CY6IoJaL9RVXzDsm4RjCo=; b=Pnj9TPpEfVVajG CZgofFX09uZYa7UoUfxUCULuQIODJ2D6CVYlqaDjtcvUK+gxgxZHedEYWAIh/eDUBjefP4CWzZQAI nM9EZZtswplXdukXZcEA0wsFlDLv41/yAQ0rm3lcer1aQh2WyeLFZA3GGS7RvEZ5LPYQIEC+cLpbw +mnxwDInpxYnzrzxVF7rfCZk+d85DpJq6hd4mXe9YEX3CWXjqVYWkygK5mGLOCus0YwegS0CqrQ/d 2Wa+bNF0urJX70YJUvwxheifOPhy6DSt2Dry5WliDfct/VPX/c9CDaF6VIKmKj9mLnV8CHd7SR8Iu CpdliNPuEkk0mNf08bHA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4HDm-0000000AK1h-3F0N; Tue, 07 May 2024 09:34:50 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s4HDk-0000000AK1G-0Gno for linux-arm-kernel@lists.infradead.org; Tue, 07 May 2024 09:34:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uarDHQ+a07tcRKI28LofQYYCslRlvc1XjILv15IA6C8=; b=PziktTF17Jc8u09/HMPR5DU/yy zsrmYUqA5oWzK7ZXjFEDfMSDi9mTS9r/VZuTc/Nmg6YvkyLNcaPCsO7RToY6boQVSm0Zr5665Op5d xQIGFlpmsEmgs4Vjo70G32RTwxNTDY7rQAznZ76/NlJOd7Jo09ese7Py2HSAEP3SYJxfnE5sQqSyw 1ENVU4Tv8sD0poPrbuBmD3yZmb/8UrWg0UMmHhuuAcOwX1dS8wa57sY4Jn5qZWMZDS8NrDiL5OP7T UfIRvmHYa8ILi911uHTFxX/uK3gcoqHaVb6eM+R1FcOZy42XV+llzS856N2PY6T/DBgNvlQ0dQmjw CCFuvLaA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:46068) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1s4HDe-0003VG-1C; Tue, 07 May 2024 10:34:42 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1s4HDe-0000Da-Sh; Tue, 07 May 2024 10:34:42 +0100 Date: Tue, 7 May 2024 10:34:42 +0100 From: "Russell King (Oracle)" To: Marek Szyprowski Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Michael Turquette , Stephen Boyd Subject: Re: [PATCH] clkdev: fix potential NULL pointer dereference Message-ID: References: <20240507064434.3213933-1-m.szyprowski@samsung.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240507064434.3213933-1-m.szyprowski@samsung.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240507_023448_125093_CE5C5CB9 X-CRM114-Status: UNSURE ( 9.21 ) 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 Tue, May 07, 2024 at 08:44:34AM +0200, Marek Szyprowski wrote: > dev_fmt argument is optional, so avoid dereferencing it unconditionally. > > Fixes: 4d11c62ca8d7 ("clkdev: report over-sized strings when creating clkdev entries") > Signed-off-by: Marek Szyprowski Please put this in the patch system so it can be merged along with the change that created the problem. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel