From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="mWRKKubF" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4DBC8F; Mon, 20 Nov 2023 01:51:41 -0800 (PST) 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=GhKWm8A2BWOujxS2VA+boNZBF8/Ex9YH9TtbKdo0egc=; b=mWRKKubFdHTVqP+snfCHCV6owX 9QfWgA5RVXvA4VSIfQPxyIskbBfrQEsWoDdi6yprvf9swQGPwxt4VkxiwSMeDqcttnjdmM2zV2QVM 5JUHAephk1vbuI0O4K9sz6ZnNjVOyvyWWJDYS+KNOFNICMqpRHNUC0FQ1o7M5wiSCkJkZ3JGMcvrT R/uV3lr1BDk5dkDMSspLW42F0aKiggidrtTVkd3csn5kVSWr0vBJl4t9TQ5mymXIiJqj57u1sZCXp mt/+ZdTF/uM6APIiHI//zXImLdaJjR4ap/WTqEBQFEcJWnJhpQ4/imfOqJggqXQBCx8ewf7tsiId9 +qb16UUw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:42320) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1r50wI-0005GM-0o; Mon, 20 Nov 2023 09:51:34 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1r50wI-00034i-ST; Mon, 20 Nov 2023 09:51:34 +0000 Date: Mon, 20 Nov 2023 09:51:34 +0000 From: "Russell King (Oracle)" To: Lukas Funke Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lukas Funke , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: Fix potential null pointer access Message-ID: References: <20231120093256.3642327-1-lukas.funke-oss@weidmueller.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231120093256.3642327-1-lukas.funke-oss@weidmueller.com> Sender: Russell King (Oracle) On Mon, Nov 20, 2023 at 10:32:54AM +0100, Lukas Funke wrote: > From: Lukas Funke > > When there is no driver associated with the phydev, there will be a > nullptr access. The commit checks if the phydev driver is set before > access. What's the call path that we encounter a NULL drv pointer? Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!