Skip to content

Commit

Permalink
modules/spd-decode: Fixed DDR2 module size
Browse files Browse the repository at this point in the history
  • Loading branch information
ocerman authored and lpereira committed Nov 1, 2021
1 parent c9d9f9c commit 69d2b61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/devices/spd-decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -443,9 +443,9 @@ static void decode_ddr2_module_size(unsigned char *bytes, dmi_mem_size *size) {
k = ((bytes[5] & 0x7) + 1) * bytes[17];

if (i > 0 && i <= 12 && k > 0) {
if (*size) { *size = ((1 << i) * k); }
if (size) { *size = ((1 << i) * k); }
} else {
if (*size) { *size = 0; }
if (size) { *size = 0; }
}
}

Expand Down

0 comments on commit 69d2b61

Please sign in to comment.