mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-29 07:06:20 +00: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> Signed-off-by: maurerr <mariusd84@gmail.com>
This commit is contained in:
parent
a000fbf4c2
commit
ed4be51ec2
@ -580,7 +580,7 @@ static int bcm4908img_extract(int argc, char **argv) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(type, "cferom")) {
|
if (!strcmp(type, "cferom")) {
|
||||||
offset = 0;
|
offset = info.cferom_offset;
|
||||||
length = info.bootfs_offset - offset;
|
length = info.bootfs_offset - offset;
|
||||||
if (!length) {
|
if (!length) {
|
||||||
err = -ENOENT;
|
err = -ENOENT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user