[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Yn6zWVRztEwibCy/@lunn.ch>
Date: Fri, 13 May 2022 21:36:57 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Fabio Estevam <festevam@...il.com>
Cc: kuba@...nel.org, davem@...emloft.net, netdev@...r.kernel.org,
Fabio Estevam <festevam@...x.de>
Subject: Re: [PATCH net-next 1/2] net: phy: micrel: Allow probing without
.driver_data
On Fri, May 13, 2022 at 08:46:12AM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <festevam@...x.de>
>
> Currently, if the .probe element is present in the phy_driver structure
> and the .driver_data is not, a NULL pointer dereference happens.
>
> Allow passing .probe without .driver_data by inserting NULL checks
> for priv->type.
>
> Signed-off-by: Fabio Estevam <festevam@...x.de>
Reviewed-by: Andrew Lunn <andrew@...n.ch>
Andrew
Powered by blists - more mailing lists