cmd: Add test and fix bugs for dm drivers
authorSean Anderson <seanga2@gmail.com>
Mon, 6 Apr 2020 14:23:09 +0000 (10:23 -0400)
committerTom Rini <trini@konsulko.com>
Thu, 9 Apr 2020 13:18:56 +0000 (09:18 -0400)
commit97c7ac214e1df5579a1f9f35d36c717e6975619a
tree8df9f976ce65a3257a7866b0d65fa4c19efa25fb
parentdfd5321becc54d7ce9fd564aaaba70a2132c058e
cmd: Add test and fix bugs for dm drivers

Add a test for the dm drivers command. Also fix a null pointer dereference
revealed by said test.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/dm.c
drivers/core/dump.c
test/py/tests/test_dm.py [new file with mode: 0644]