diff options
author | Martin Roth <gaumless@gmail.com> | 2023-10-23 17:10:29 -0600 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-10-25 14:07:16 +0000 |
commit | a41abea65d673d7c006dbde2ca832abdedd0bb2b (patch) | |
tree | b81d5d6cd27c1d23393e5ef678e8b41ca19961e0 /src/mainboard/asrock/h110m | |
parent | 58964ff02ce7a78bc698f424fd0834aad930e1af (diff) |
device/dram/ddr3.c: Check SPD byte before using as a divisor
The Medium Time Base (MTB) value is calculated by dividing one SPD
byte by another. Return an error if the divisor is zero before using
the value for division.
Found-by: Coverity Scan #1469303
Signed-off-by: Martin Roth <gaumless@gmail.com>
Change-Id: Ic0a70291c42b5c2d21d65de92487b2dd88609983
Reviewed-on: https://review.coreboot.org/c/coreboot/+/78613
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de>
Diffstat (limited to 'src/mainboard/asrock/h110m')
0 files changed, 0 insertions, 0 deletions