[U-Boot] [PATCH v3 3/3] net: eth: Check return value in various places

Joe Hershberger joe.hershberger at gmail.com
Thu Oct 29 20:31:12 CET 2015


On Wed, Oct 7, 2015 at 11:45 PM, Bin Meng <bmeng.cn at gmail.com> wrote:
> 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 at gmail.com>
> Acked-by: Joe Hershberger <joe.hershberger at ni.com>

Applied to u-boot-net/master, thanks!
-Joe


More information about the U-Boot mailing list