On 09/24/2018 04:50 PM, Andrew Lunn wrote: > A HWMON device is only registered is the SFP module supports the > diagnostic page and is complient to SFF8472. Don't unconditionally > unregister the hwmon device when the SFP module is remove, otherwise > we access data structures which don't exist. > > Reported-by: Florian Fainelli <[email protected]> > Fixes: 1323061a018a ("net: phy: sfp: Add HWMON support for module sensors") > Signed-off-by: Andrew Lunn <[email protected]>
Tested-by: Florian Fainelli <[email protected]> -- Florian
