Skip to content
Commit 578cdc7a authored by Pierre Gondois's avatar Pierre Gondois Committed by Deepak Kumar Mishra
Browse files

cacheinfo: Return error code in init_of_cache_level()



Make init_of_cache_level() return an error code when the cache
information parsing fails to help detecting missing information.

init_of_cache_level() is only called for riscv. Returning an error
code instead of 0 will prevent detect_cache_attributes() to allocate
memory if an incomplete DT is parsed.

Signed-off-by: Pierre Gondois's avatarPierre Gondois <pierre.gondois@arm.com>
Reviewed-by: Sudeep Holla's avatarSudeep Holla <sudeep.holla@arm.com>
parent e20dedea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment