diff options
author | Lijian Zhao <lijian.zhao@intel.com> | 2018-03-26 18:27:02 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2018-04-01 19:43:01 +0000 |
commit | b1fc13ac9af0a74fc206991775933c19379058ba (patch) | |
tree | 4707c9e26da84209a0d8d3371c983ea18d4539bb /src/ec/google/chromeec | |
parent | c2a9f0cf762a86ac0e52915f65fc514e13e6219a (diff) |
arch/x86/smbios: Consider corner case of Part Number
In case of all DMI Type 17 to be empty, the strip trailing whitespace
code will have a zero length Part Number entry, which will cause
exception when using (len - 1) where len is zero. Add extra code to
cover this corner case.
BUG=b:76452395
TEST=Boot up fine with meowth platform, without this patch system will
get stuck at "Create SMBIOS type 17".
Change-Id: Id870c983584771dc1b60b1c99e95bbe7c0d25c4c
Signed-off-by: Lijian Zhao <lijian.zhao@intel.com>
Reviewed-on: https://review.coreboot.org/25377
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/ec/google/chromeec')
0 files changed, 0 insertions, 0 deletions