diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2021-04-07 00:17:40 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2021-04-07 00:22:37 +0200 |
commit | dcbde11af181055f2d1c77ebc19f50c29bbab96e (patch) | |
tree | 00ac7bfedcac54d11f41374cbb2616b024a9a06b | |
parent | e33957c241abf8f0dbf5f3713058d126fb4599b4 (diff) | |
download | upstream-dcbde11af181055f2d1c77ebc19f50c29bbab96e.tar.gz upstream-dcbde11af181055f2d1c77ebc19f50c29bbab96e.tar.bz2 upstream-dcbde11af181055f2d1c77ebc19f50c29bbab96e.zip |
firmware-utils: bcm4908img: fix extracting cferom
Fix offset to extract proper data when image contains vendor header.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
-rw-r--r-- | tools/firmware-utils/src/bcm4908img.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/firmware-utils/src/bcm4908img.c b/tools/firmware-utils/src/bcm4908img.c index 51c06041d6..b82303bf6d 100644 --- a/tools/firmware-utils/src/bcm4908img.c +++ b/tools/firmware-utils/src/bcm4908img.c @@ -580,7 +580,7 @@ static int bcm4908img_extract(int argc, char **argv) { } if (!strcmp(type, "cferom")) { - offset = 0; + offset = info.cferom_offset; length = info.bootfs_offset - offset; if (!length) { err = -ENOENT; |