summaryrefslogtreecommitdiff
path: root/test/dm
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-10-07 21:45:44 -0700
committerJoe Hershberger <joe.hershberger@ni.com>2015-10-29 14:05:52 -0500
commitac1d31380618f3f68bf7f05b73b6ab0cdeab0e9f (patch)
tree727411073a7ad684eaaa844ee492b9dec4a176af /test/dm
parent6d9764c2a87cc5a1ce4f3919add6360ec36f81c7 (diff)
downloadu-boot-ac1d31380618f3f68bf7f05b73b6ab0cdeab0e9f.tar.gz
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 'test/dm')
0 files changed, 0 insertions, 0 deletions