]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: test: Add a new test case against dm eth codes for NULL pointer access
authorBin Meng <bmeng.cn@gmail.com>
Thu, 8 Oct 2015 04:45:43 +0000 (21:45 -0700)
committerJoe Hershberger <joe.hershberger@ni.com>
Thu, 29 Oct 2015 19:05:52 +0000 (14:05 -0500)
commit6d9764c2a87cc5a1ce4f3919add6360ec36f81c7
treefeae9f556972bb3d9d0b2f69ccb3f9549ca9e3ab
parenta16edabe7f744b2d7a97bba4d4bc95b6894fd592
dm: test: Add a new test case against dm eth codes for NULL pointer access

U-Boot crashes when doing a 'ping' with the following test scenario:

  - All ethernet devices are not probed
  - "ethaddr" for all ethernet devices are not set
  - "ethact" is set to a valid ethernet device name

Add a new test case 'dm_test_eth_act' to hit such scenario.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
test/dm/eth.c