commit | c1ff3cf9841e87b86d29cc3d3724fc52ba8fb110 | [log] [tgz] |
---|---|---|
author | David Hendricks <dhendrix@chromium.org> | Wed Feb 17 13:06:47 2016 -0800 |
committer | chrome-bot <chrome-bot@chromium.org> | Wed Feb 17 18:51:55 2016 -0800 |
tree | b259a6952e9d4158b86e57495d86c827f1db2c8e | |
parent | 8f9820a2fd3701c94993cf3208bf3830a5ffb803 [diff] |
spd: Fix math bug in spd_read_from_cbfs() The boundary check in spd_read_from_cbfs() should use <= instead of < since it's sanity checking a count rather than an offset for the bytes to be read. BUG=chromium:580794 BRANCH=none TEST=none Change-Id: I85bab6fce1982a0b8312e9485f0c1bd9cf9de9cd Signed-off-by: David Hendricks <dhendrix@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/327991 Reviewed-by: Duncan Laurie <dlaurie@chromium.org>