Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
1aabb74f
Commit
1aabb74f
authored
Sep 14, 2020
by
Mark Dykes
Committed by
TrustedFirmware Code Review
Sep 14, 2020
Browse files
Merge "rockchip: don't crash if we get an FDT we can't parse" into integration
parents
34029d01
e7b58698
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/rockchip/common/params_setup.c
View file @
1aabb74f
...
...
@@ -230,12 +230,27 @@ static bool rk_aux_param_handler(struct bl_aux_param_header *param)
void
params_early_setup
(
u_register_t
plat_param_from_bl2
)
{
int
ret
;
/*
* Test if this is a FDT passed as a platform-specific parameter
* block.
*/
if
(
!
dt_process_fdt
(
plat_param_from_bl2
))
ret
=
dt_process_fdt
(
plat_param_from_bl2
);
if
(
!
ret
)
{
return
;
}
else
if
(
ret
!=
-
FDT_ERR_BADMAGIC
)
{
/*
* If we found an FDT but couldn't parse it (e.g. corrupt, not
* enough space), return and don't attempt to parse the param
* as something else, since we know that will also fail. All
* we're doing is setting up UART, this doesn't need to be
* fatal.
*/
WARN
(
"%s: found FDT but could not parse: error %d
\n
"
,
__func__
,
ret
);
return
;
}
bl_aux_params_parse
(
plat_param_from_bl2
,
rk_aux_param_handler
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment