Re: [PATCH net] net: phy: genphy_10g_driver: Avoid NULL pointer dereference

2018-10-25 Thread David Miller
From: Andrew Lunn Date: Thu, 25 Oct 2018 14:42:38 +0200 > This driver got missed during the recent change of .features from a > u32 to a pointer to a Linux bitmap. Change the initialisation from 0 > to PHY_10GBIT_FEATURES so removing the danger of a NULL pointer > dereference. > > Fixes: 719655a

[PATCH net] net: phy: genphy_10g_driver: Avoid NULL pointer dereference

2018-10-25 Thread Andrew Lunn
This driver got missed during the recent change of .features from a u32 to a pointer to a Linux bitmap. Change the initialisation from 0 to PHY_10GBIT_FEATURES so removing the danger of a NULL pointer dereference. Fixes: 719655a14971 ("net: phy: Replace phy driver features u32 with link_mode bitm