summaryrefslogtreecommitdiffstats
path: root/libs/VPD
diff options
context:
space:
mode:
authorEvan Lojewski <github@meklort.com>2019-02-23 09:19:21 -0700
committerEvan Lojewski <github@meklort.com>2019-02-23 09:19:21 -0700
commit8ff0fd9d2b6ea0f7bdf0f65ac1deb90fec425007 (patch)
treea84c7a6b34d8f79bd53ac970d40a005099dd443a /libs/VPD
parentf209250aa83da9ed83cfb5823a0ad70234c2fa51 (diff)
downloadbcm5719-ortega-8ff0fd9d2b6ea0f7bdf0f65ac1deb90fec425007.tar.gz
bcm5719-ortega-8ff0fd9d2b6ea0f7bdf0f65ac1deb90fec425007.zip
Add checking stage1 / stage2 crc and reporting if an error exists.
Diffstat (limited to 'libs/VPD')
-rw-r--r--libs/VPD/vpd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/VPD/vpd.c b/libs/VPD/vpd.c
index 3308061..7c5ed40 100644
--- a/libs/VPD/vpd.c
+++ b/libs/VPD/vpd.c
@@ -184,7 +184,7 @@ bool vpd_is_valid(uint8_t *buffer, size_t len)
}
// TODO: check checksum.
- return true;
+ return len != 0;
}
uint8_t *vpd_get_identifier(uint8_t *buffer, size_t *len)
OpenPOWER on IntegriCloud