summaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-mod.c
diff options
context:
space:
mode:
authorFabio Estevam <festevam@denx.de>2022-05-13 08:46:12 -0300
committerJakub Kicinski <kuba@kernel.org>2022-05-16 12:58:10 -0700
commitf2ef6f7539c68c6bd6c32323d8845ee102b7c450 (patch)
tree771a83af8ee65888c1b0aeb131923d59dc9b4d6e /lib/mpi/mpi-mod.c
parentd887ae3247e022183f244cb325dca1dfbd0a9ed0 (diff)
net: phy: micrel: Allow probing without .driver_data
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@denx.de> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Link: https://lore.kernel.org/r/20220513114613.762810-1-festevam@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-mod.c')
0 files changed, 0 insertions, 0 deletions