From a73a803bcd79730deac47f9f8e87a232c96432b0 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 23 Aug 2016 13:19:14 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/16302 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Paul Menzel --- src/vboot/vboot_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vboot') 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 =========================== */ -- cgit v1.2.3