diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/fmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/fmap.c b/src/lib/fmap.c index 75c5a9fb1c..80fb0b2be6 100644 --- a/src/lib/fmap.c +++ b/src/lib/fmap.c @@ -199,8 +199,7 @@ int fmap_locate_area(const char *name, struct region *ar) printk(BIOS_DEBUG, "FMAP: area %s found @ %x (%d bytes)\n", name, le32toh(area->offset), le32toh(area->size)); - ar->offset = le32toh(area->offset); - ar->size = le32toh(area->size); + *ar = region_create(le32toh(area->offset), le32toh(area->size)); rdev_munmap(&fmrd, area); |