diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2018-07-12 11:54:20 +0200 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2018-07-17 08:04:30 +0000 |
commit | 06528d97a92c2131c402ae11617658d2b8675d4c (patch) | |
tree | d29cc35cb973f65e8dc08029a6d3afe47c5bfd29 /src/vendorcode/cavium/bdk | |
parent | de8e68917fac12e3448cc8f3bde08d444642ce8a (diff) |
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>
Diffstat (limited to 'src/vendorcode/cavium/bdk')
-rw-r--r-- | src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c b/src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c index 1c988088e9..192a8a9194 100644 --- a/src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c +++ b/src/vendorcode/cavium/bdk/libdram/dram-init-ddr3.c @@ -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 */ |