summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-10-08 04:45:44 (GMT)
committerJoe Hershberger <joe.hershberger@ni.com>2015-10-29 19:05:52 (GMT)
commitac1d31380618f3f68bf7f05b73b6ab0cdeab0e9f (patch)
tree727411073a7ad684eaaa844ee492b9dec4a176af /common
parent6d9764c2a87cc5a1ce4f3919add6360ec36f81c7 (diff)
downloadu-boot-fsl-qoriq-ac1d31380618f3f68bf7f05b73b6ab0cdeab0e9f.tar.xz
net: eth: Check return value in various places
eth_get_dev() can return NULL which means device_probe() fails for that ethernet device. Add return value check in various places or U-Boot will crash due to NULL pointer access. With this commit, 'dm_test_eth_act' test case passes. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'common')
0 files changed, 0 insertions, 0 deletions