diff options
author | Patrick Rudolph <patrick.rudolph@9elements.com> | 2019-04-13 09:44:02 +0200 |
---|---|---|
committer | Patrick Rudolph <siro@das-labor.org> | 2019-04-19 06:19:13 +0000 |
commit | 8f702676071ab3e62a9c07d5bdc75f5c92e58946 (patch) | |
tree | 1c1299eb067d9584d42e090c6d103179b46d7c1b | |
parent | 64a6bcaa4eb491170b4424f7d676f09854c2744a (diff) | |
download | coreboot-8f702676071ab3e62a9c07d5bdc75f5c92e58946.tar.xz |
smbios: Fix copy paste error
As reported by Coverity Scan CID 1400679.
Change-Id: I526b78a0697b7eb3c3dc75974c3a3a714b3d343f
Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/32313
Reviewed-by: Lijian Zhao <lijian.zhao@intel.com>
Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r-- | src/arch/x86/smbios.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c index d71c0d5ff9..1aa5be927d 100644 --- a/src/arch/x86/smbios.c +++ b/src/arch/x86/smbios.c @@ -656,7 +656,7 @@ smbios_write_type7(unsigned long *current, t->max_cache_size |= SMBIOS_CACHE_SIZE_UNIT_1KB; t->max_cache_size2 |= SMBIOS_CACHE_SIZE2_UNIT_1KB; } else { - if (cache_size < (SMBIOS_CACHE_SIZE_MASK * 64 * KiB)) + if (max_cache_size < (SMBIOS_CACHE_SIZE_MASK * 64 * KiB)) t->max_cache_size = max_cache_size / (64 * KiB); else t->max_cache_size = SMBIOS_CACHE_SIZE_OVERFLOW; |