Don't try to map invalid shm handle.
If we don't have a valid shared memory handle return early and don't try to map the memory. Also move check for duplicated ids earlier in the function. Bug: none Change-Id: I53b113cc3da2149d15fa70afa8bc8d52bc362e8d Reviewed-on: https://chromium-review.googlesource.com/c/1326842 Commit-Queue: kylechar <kylechar@chromium.org> Reviewed-by:danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/master@{#606904}
Showing
Please register or sign in to comment