Skip to content
Commit 1138a442 authored by Colin Ian King's avatar Colin Ian King Committed by Kishon Vijay Abraham I
Browse files

phy: ti: ensure priv is not null before dereferencing it



Currently priv is being dereferenced before priv is being null checked.
Fix this by moving the null check on priv before the dereference.

Detected by CoverityScan, CID#1476018 ("Dereference before null check")

Fixes: 92b58b34 ("phy: ti: introduce phy-gmii-sel driver")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarKishon Vijay Abraham I <kishon@ti.com>
parent 3bd6e94b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment