[PATCH 3/4] dm: avoid NULL dereference in lists_bind_fdt()
Simon Glass
sjg at chromium.org
Tue Jul 26 21:52:57 CEST 2022
On Mon, 11 Jul 2022 at 00:21, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> If parameter drv of lists_bind_fdt() is specified, we want to bind to this
> specific driver even if its field of_match is NULL.
>
> If entry->of_match is NULL, we should not dereference it in a debug
> statement.
>
> Fixes: d3e773613b6d ("dm: core: Use U-Boot logging instead of pr_debug()")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> drivers/core/lists.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
Reviewed-by: Simon Glass <sjg at chromium.org>
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list