]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: micrel: Pass .probe for KS8737
authorFabio Estevam <festevam@denx.de>
Wed, 4 May 2022 14:31:04 +0000 (11:31 -0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 6 May 2022 00:02:02 +0000 (17:02 -0700)
commit632b711bc99817aa064a920c6a622e41ddbd7800
tree885c5c1ee66ac7e337f649abf7cd61c0490997c5
parent3158b9f5688884ca0f898030120c517f68beb4f3
net: phy: micrel: Pass .probe for KS8737

Since commit 39560238d8ed ("net: phy: micrel: use
kszphy_suspend()/kszphy_resume for irq aware devices") the kszphy_suspend/
resume hooks are used.

These functions require the probe function to be called so that
priv can be allocated.

Otherwise, a NULL pointer dereference happens inside
kszphy_config_reset().

Cc: stable@vger.kernel.org
Fixes: 39560238d8ed ("net: phy: micrel: use kszphy_suspend()/kszphy_resume for irq aware devices")
Reported-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220504143104.1286960-2-festevam@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/micrel.c