summaryrefslogtreecommitdiff
path: root/include/rdma
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-09-14 14:00:38 +0300
committerVinod Koul <vkoul@kernel.org>2021-10-26 14:06:23 +0300
commit8d55027f4e2c04146a75fb63371ab96ccc887f2c (patch)
tree12a5719c6d7c91de50f34f953d93f01bb5f326c3 /include/rdma
parentd8b951abd7ff7b126398c51d33671a6909541c68 (diff)
downloadlinux-8d55027f4e2c04146a75fb63371ab96ccc887f2c.tar.xz
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: 7f78322cdd67 ("phy: ti: gmii-sel: retrieve ports number and base offset from dt") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com> Link: https://lore.kernel.org/r/20210914110038.GB11657@kili Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions