Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ozone: Fix a nullptr access if a bo can't be created
GbmBuffer tries to access a nullptr after gbm_bo_create returns null. This patch makes sure to return a nullptr when this happens. This seems to be the already intended behavior since after dereferencing the nullptr we already check if it's null, and return nullptr in that case. Bug: 751334 Change-Id: I620e099bd52b33c9f43b25c774243f93f47f5bc5 Reviewed-on: https://chromium-review.googlesource.com/609189 Reviewed-by: David Reveman <reveman@chromium.org> Commit-Queue: Daniele Castagna <dcastagna@chromium.org> Cr-Commit-Position: refs/heads/master@{#493295}
- Loading branch information