vboot/vboot_common: actually provide a writable region_device
commita73a803bcd79730deac47f9f8e87a232c96432b0
authorAaron Durbin <adurbin@chromium.org>
Tue, 23 Aug 2016 18:19:14 +0000 (23 13:19 -0500)
committerAaron Durbin <adurbin@chromium.org>
Tue, 23 Aug 2016 22:09:16 +0000 (24 00:09 +0200)
treec5d09258afa6c8231736d92237848e93a5f793e7
parentf643d661e1573b7da8a603c23a49b08552c60543
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>
src/vboot/vboot_common.c