Commit 8d55027f authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul
Browse files

phy: ti: gmii-sel: check of_get_address() for failure

Smatch complains that if of_get_address() returns NULL, then "size"
isn't initialized.  Also it would lead to an Oops.

Fixes: 7f78322c

 ("phy: ti: gmii-sel: retrieve ports number and base offset from dt")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarGrygorii Strashko <grygorii.strashko@ti.com>
Link: https://lore.kernel.org/r/20210914110038.GB11657@kili


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent d8b951ab
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment