Re: [PATCH net] net: phy: phy driver features are mandatory

From: Andrew Lunn
Date: Tue Jan 15 2019 - 09:05:16 EST


On Tue, Jan 15, 2019 at 02:35:19PM +0200, Camelia Groza wrote:
> Since phy driver features became a link_mode bitmap, phy drivers that
> don't have a list of features configured will cause the kernel to crash
> when probed.
>
> Prevent the phy driver from registering if the features field is missing.
>
> Fixes: 719655a14971 ("net: phy: Replace phy driver features u32 with link_mode bitmap")
> Reported-by: Scott Wood <oss@xxxxxxxxxxxx>
> Signed-off-by: Camelia Groza <camelia.groza@xxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew