[PATCH 1/1] test: NULL dereference in test-uclass

Simon Glass sjg at chromium.org
Sun Jul 4 21:24:31 CEST 2021


Hi Heinrich,

On Thu, 3 Jun 2021 at 14:08, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> If a test-uclass device is probed outside a test, uts is not defined.
> Avoid a NULL dereference in this case.

I am missing the motivation for this patch. In what situation does this occur?

Regards,
Simon


>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  test/dm/test-uclass.c | 12 ++++++++++++
>  1 file changed, 12 insertions(+)
>


More information about the U-Boot mailing list