commit | 2ca00039fc5ea7a302bfc02ef8bd11ae12825c4f | [log] [tgz] |
---|---|---|
author | Samuel Holland <samuel.holland@sifive.com> | Mon Apr 14 12:47:04 2025 -0700 |
committer | Tom Rini <trini@konsulko.com> | Thu Apr 24 08:23:02 2025 -0600 |
tree | 025360246604f6b0a164312d2be212ef40bb1886 | |
parent | a342d02789fb052d940316563e8d532aa3ad67ed [diff] |
smbios: Do not look up children of invalid nodes If there is no UCLASS_SYSINFO device available, parent_node will be ofnode_null(). Calling ofnode_find_subnode() then triggers an assertion: drivers/core/ofnode.c:598: ofnode_find_subnode: Assertion `ofnode_valid(node)' failed. Check for a valid parent_node, not just that OF_CONTROL is enabled. Fixes: 44ffb6f0ecaf ("smbios: Allow properties to come from the device tree") Signed-off-by: Samuel Holland <samuel.holland@sifive.com>