diff options
author | Bin Meng <bmeng.cn@gmail.com> | 2015-10-07 21:45:44 -0700 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-10-29 14:05:52 -0500 |
commit | ac1d31380618f3f68bf7f05b73b6ab0cdeab0e9f (patch) | |
tree | 727411073a7ad684eaaa844ee492b9dec4a176af /README | |
parent | 6d9764c2a87cc5a1ce4f3919add6360ec36f81c7 (diff) | |
download | u-boot-imx-ac1d31380618f3f68bf7f05b73b6ab0cdeab0e9f.zip u-boot-imx-ac1d31380618f3f68bf7f05b73b6ab0cdeab0e9f.tar.gz u-boot-imx-ac1d31380618f3f68bf7f05b73b6ab0cdeab0e9f.tar.bz2 |
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 'README')
0 files changed, 0 insertions, 0 deletions