summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-08-23 13:19:14 -0500
committerAaron Durbin <adurbin@chromium.org>2016-08-24 00:09:16 +0200
commita73a803bcd79730deac47f9f8e87a232c96432b0 (patch)
treec5d09258afa6c8231736d92237848e93a5f793e7
parentf643d661e1573b7da8a603c23a49b08552c60543 (diff)
vboot/vboot_common: actually provide a writable region_device
vboot_named_region_device_rw() is supposed to provide a writable region_device. However, it was calling fmap_locate_area_as_rdev() which only provides a read-only one. Fix this. BUG=chrome-os-partner:56151 Change-Id: I6279fde32132b1b6138292c3ef771c59709e00c6 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16302 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--src/vboot/vboot_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vboot/vboot_common.c b/src/vboot/vboot_common.c
index 7e1ca9de55..515b368f91 100644
--- a/src/vboot/vboot_common.c
+++ b/src/vboot/vboot_common.c
@@ -32,7 +32,7 @@ int vboot_named_region_device(const char *name, struct region_device *rdev)
int vboot_named_region_device_rw(const char *name, struct region_device *rdev)
{
- return fmap_locate_area_as_rdev(name, rdev);
+ return fmap_locate_area_as_rdev_rw(name, rdev);
}
/* ========================== VBOOT HANDOFF APIs =========================== */