diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2021-04-11 12:21:56 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-04-20 14:31:12 +0300 |
commit | 1b8897c63e4c4eedd55f69f9728cd49f2a1cddba (patch) | |
tree | 2a65b1ed57e18f7bd06e626bc20ec66fac09a2b6 /cmd/stackprot_test.c | |
parent | fd90aca329a37eade4187ca886a8dea5c60aaba0 (diff) | |
download | u-boot-1b8897c63e4c4eedd55f69f9728cd49f2a1cddba.tar.xz |
test: fix test/dm/regmap.c
regmap_read() only fills the first two bytes of val. The last two bytes are
random data from the stack. This means the test will fail randomly.
For low endian systems we could simply initialize val to 0 and get correct
results. But tests should not depend on endianness. So let's use a pointer
conversion instead.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/stackprot_test.c')
0 files changed, 0 insertions, 0 deletions