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

Commit 47256192 authored by Madalin Bucur's avatar Madalin Bucur
Browse files

fsl/fman: check pcsphy pointer before use

parent 44045e45
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -507,6 +507,9 @@ static void setup_sgmii_internal_phy(struct fman_mac *memac,
{
	u16 tmp_reg16;

	if (WARN_ON(!memac->pcsphy))
		return;

	/* SGMII mode */
	tmp_reg16 = IF_MODE_SGMII_EN;
	if (!fixed_link)