Re: [PATCH] net: ethernet: Fix phy_set_max_speed by checking for NULL

2019-03-04 Thread Florian Fainelli
On 3/4/19 3:36 PM, Aditya Pakki wrote: > phy_device can be a NULL pointer which is further dereferenced > downstream in phy_set_max_speed. This patch avoids such a scenario. > > Signed-off-by: Aditya Pakki > --- > drivers/net/ethernet/broadcom/genet/bcmmii.c | 2 ++ > 1 file changed, 2

[PATCH] net: ethernet: Fix phy_set_max_speed by checking for NULL

2019-03-04 Thread Aditya Pakki
phy_device can be a NULL pointer which is further dereferenced downstream in phy_set_max_speed. This patch avoids such a scenario. Signed-off-by: Aditya Pakki --- drivers/net/ethernet/broadcom/genet/bcmmii.c | 2 ++ 1 file changed, 2 insertions(+) diff --git