cavium/bdk: Fix possible buffer overrun
Fix Coverity CID1393975 Change-Id: I275cabf55fba464be7bd4c21dfe5826ea554ac84 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/27449 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
This commit is contained in:
parent
de8e68917f
commit
06528d97a9
|
@ -2312,7 +2312,7 @@ void perform_octeon3_ddr3_sequence(bdk_node_t node, int rank_mask, int ddr_inter
|
|||
seq_ctl.s.seq_sel = sequence;
|
||||
|
||||
VB_PRT(VBL_SEQ, "N%d.LMC%d: Performing LMC sequence=%x: rank_mask=0x%02x, %s\n",
|
||||
node, ddr_interface_num, sequence, rank_mask, sequence_str[sequence]);
|
||||
node, ddr_interface_num, sequence, rank_mask, sequence < 12 ? sequence_str[sequence] : "");
|
||||
|
||||
if ((s = lookup_env_parameter("ddr_trigger_sequence%d", sequence)) != NULL) {
|
||||
/* FIXME(dhendrix): this appears to be meant for the eval board */
|
||||
|
|
Loading…
Reference in New Issue