commit | 85e8fc891a5c7ae5f40150165d1532dbbe694c25 | [log] [tgz] |
---|---|---|
author | Sean Anderson <seanga2@gmail.com> | Sat Oct 28 18:57:27 2023 -0400 |
committer | Tom Rini <trini@konsulko.com> | Thu Nov 16 16:21:38 2023 -0500 |
tree | 5e89e76952cb6d0c850ca45acc416be3c7d21f85 | |
parent | 0f1c62ed58b14224055191e31cd69322a0647d07 [diff] |
test: eth: Don't crash if env_get returns NULL env_get can return NULL if it fails to find the variable. Check its result before using it. Fixes: 6d9764c2a87 ("dm: test: Add a new test case against dm eth codes for NULL pointer access") Fixes: df33fd28897 ("test: eth: Add test for ethernet addresses") Signed-off-by: Sean Anderson <seanga2@gmail.com>