aboutsummaryrefslogtreecommitdiff
path: root/resources/utilities/ich9deblob
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2014-12-29 17:06:50 +0000
committerFrancis Rowe <info@gluglug.org.uk>2014-12-29 17:06:50 +0000
commit8363d92fa62d6175b0e6517170026b04c09e7e74 (patch)
tree53a54f01701cf6884f2500c50ba3ede6c1275bc3 /resources/utilities/ich9deblob
parent400c0f9d9fb0694ad1636702482dd05fa1292693 (diff)
downloadlibrebootfr-8363d92fa62d6175b0e6517170026b04c09e7e74.tar.gz
librebootfr-8363d92fa62d6175b0e6517170026b04c09e7e74.zip
ich9gen: fix ARM. Initialize customMacAddress
Fixes bug where custom MAC address would always be wrong. Tested on a BBB.
Diffstat (limited to 'resources/utilities/ich9deblob')
-rw-r--r--resources/utilities/ich9deblob/src/ich9gen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/resources/utilities/ich9deblob/src/ich9gen.c b/resources/utilities/ich9deblob/src/ich9gen.c
index dfd13439..ad43a9d2 100644
--- a/resources/utilities/ich9deblob/src/ich9gen.c
+++ b/resources/utilities/ich9deblob/src/ich9gen.c
@@ -69,6 +69,8 @@ int main(int argc, char *argv[])
}
}
for(i=0; i<6; i++) {
+ customMacAddress[i] = 0;
+
/* Go through each nibble of the byte */
for(j=0; j<2; j++) {
if(argv[2][(i*3)+j]>='a' && argv[2][(i*3)+j]<='f')