Verify persistent memory exists.

Ensure during allocation that the allocated segment is fully writable.
This should concentrate all related errors into this one place making it
easier to monitor such failure.  It will also allow for future handling
of the condition.

Bug: 753741
Change-Id: I4e82d4f8a35c9066dd552915bb76fc333f9602cf
Reviewed-on: https://chromium-review.googlesource.com/737551
Commit-Queue: Brian White <bcwhite@chromium.org>
Reviewed-by: Alexei Svitkine <asvitkine@chromium.org>
Cr-Commit-Position: refs/heads/master@{#511913}

CrOS-Libchrome-Original-Commit: db690e2d96189eccda2792775ed3d0fb3cf4e11a
2 files changed
tree: 35c4bcf14b8070d5bbd578ee75b33d4ab5d0d264
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/