Skip to content
Snippets Groups Projects
Commit 93ff2552 authored by Heiko Schocher's avatar Heiko Schocher Committed by Tom Rini
Browse files

net, phy, cpsw: fix NULL pointer deference


if phy_connect() did not find a phy, phydev is NULL and
following code in cpsw_phy_init() crashes. Fix this.

Signed-off-by: default avatarHeiko Schocher <hs@denx.de>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Cc: Tom Rini <trini@ti.com>
Acked-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
parent e22cc0cf
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment