Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 750a0962 authored by Suraj Jaiswal's avatar Suraj Jaiswal Committed by Gerrit - the friendly Code Review server
Browse files

net: stmmac: Add NULL check



Add NULL check before accessing phy.

Change-Id: Iba5206cea1a06b81ea6b884ece17561b46fcf65e
Signed-off-by: default avatarSuraj Jaiswal <jsuraj@codeaurora.org>
parent 39fd8b7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -998,7 +998,7 @@ static void stmmac_mac_link_up(struct phylink_config *config,
		stmmac_set_eee_pls(priv, priv->hw, true);
	}
#ifdef CONFIG_MSM_BOOT_TIME_MARKER
	if (phy->link == 1 && !priv->boot_kpi) {
	if ((phy && phy->link == 1) && !priv->boot_kpi) {
		place_marker("M - Ethernet is Ready.Link is UP");
		priv->boot_kpi = true;
	}