summaryrefslogtreecommitdiff
path: root/cmd/stackprot_test.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2021-04-11 12:21:56 +0300
committerTom Rini <trini@konsulko.com>2021-04-20 14:31:12 +0300
commit1b8897c63e4c4eedd55f69f9728cd49f2a1cddba (patch)
tree2a65b1ed57e18f7bd06e626bc20ec66fac09a2b6 /cmd/stackprot_test.c
parentfd90aca329a37eade4187ca886a8dea5c60aaba0 (diff)
downloadu-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