Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
set initial value of serial number to zeros
Browse files Browse the repository at this point in the history
if the initial value of serial number is set to non-zero, the real
serial number will not be read.

Tracked-On: OAM-91337
Signed-off-by: JianFeng,Zhou <[email protected]>
  • Loading branch information
zhouji3x authored and kwang13 committed Jun 10, 2020
1 parent 38abefc commit 40e6878
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libkernelflinger/vars.c
Original file line number Diff line number Diff line change
Expand Up @@ -798,9 +798,7 @@ char *get_serialno_var()
char *get_serial_number(void)
{
static char bios_serialno[SERIALNO_MAX_SIZE + 1];
static char serialno[SERIALNO_MAX_SIZE + 1] =
{'0', '0', 'b', 'a', 'd', 'b', 'i', 'o', 's',
'0', '0', 'b', 'a', 'd', 'b', 'i', 'o', 's', '0', '0'};
static char serialno[SERIALNO_MAX_SIZE + 1];
char *pos;
unsigned int zeroes = 0;
UINTN len;
Expand Down

0 comments on commit 40e6878

Please sign in to comment.