]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: dm: devres: Remove use-after-free
authorAndrew Scull <ascull@google.com>
Sun, 3 Apr 2022 10:39:15 +0000 (10:39 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 29 Apr 2022 15:11:36 +0000 (11:11 -0400)
commitd69616e529560ace8cdf40bda91464a88c7ff43a
treef830de0295223e3d938244e60e80a89cdc7f3e91
parent7f58feae3fba07c349fe57e86ce8bd5cc2198f58
test: dm: devres: Remove use-after-free

Use-after-free shouldn't be used, even in tests. It's bad practice and
makes the test brittle.

Signed-off-by: Andrew Scull <ascull@google.com>
Cc: Simon Glass <sjg@chromium.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/dm/devres.c