summaryrefslogtreecommitdiff
path: root/common/fdt_support.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-07-17 00:20:14 +0200
committerSimon Glass <sjg@chromium.org>2020-07-25 14:46:57 -0600
commit331caeafad40dd457dbc669c05a9e0d8ebc7095f (patch)
tree543e3a0e9bca963b12b3a1eb94548db76bc397aa /common/fdt_support.c
parent5ab71ea4b18dce9fe5599075c4309ea39b62954f (diff)
test/dm: check if devices exist
Running 'ut dm' on the sandbox without -D or -d results in segmentation faults due to NULL pointer dereferences. Check that device pointers are non-NULL before using them. Use ut_assertnonnull() for pointers instead of ut_assert(). Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Tested-by: Philippe Reynes <philippe.reynes@softathome.com>
Diffstat (limited to 'common/fdt_support.c')
0 files changed, 0 insertions, 0 deletions