Skip to content
Commit f9fd4558 authored by Simon Glass's avatar Simon Glass
Browse files

dm: test: Don't clear global_data in dm_test_uclass_before_ready()



We must not clear global_data even in tests, since the ram_buffer (which
is used by malloc()) will also be lost, and subsequent tests will fail.

Zero only the global_data fields that are required for the test to function.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
Tested-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent 98a16053
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment