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>
This commit is contained in:
Rafał Miłecki 2021-04-07 00:17:40 +02:00
parent e33957c241
commit dcbde11af1

View File

@ -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;