mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-08 10:23:47 +08:00
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> (cherry picked from commit dcbde11af181055f2d1c77ebc19f50c29bbab96e)
This commit is contained in:
parent
e708c5ef08
commit
fe302010d3
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user