Fixing crash on allocation

Bug: 142767215
Test: build, boot, GraphicBufferAllocator_test
Change-Id: I29b9f4c84cee9a35bc79fb27859fc7d270ab7006
(cherry picked from commit e64b877bd5db7a484ad80ab1d616cb0ac1e5e0ca)
2 files changed