[PATCH 8/8] test: dm: devres: Remove use-after-free

Simon Glass sjg at chromium.org
Mon Apr 11 20:35:33 CEST 2022


On Sun, 3 Apr 2022 at 04:39, Andrew Scull <ascull at google.com> wrote:
>
> 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 at google.com>
> Cc: Simon Glass <sjg at chromium.org>
> ---
>  test/dm/devres.c | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list