mirror of
https://git.proxmox.com/git/fwupd
synced 2025-11-03 04:04:02 +00:00
fmap: Correctly check minimum firmware size
This commit is contained in:
parent
056dfff741
commit
a9060f671c
@ -21,7 +21,7 @@ fmap_size (FuFmap *fmap)
|
||||
if (fmap == NULL)
|
||||
return -1;
|
||||
|
||||
return sizeof (*fmap) + (fmap->nareas * sizeof (FuFmap));
|
||||
return sizeof (*fmap) + (fmap->nareas * sizeof (FuFmapArea));
|
||||
}
|
||||
|
||||
/* brute force linear search */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user