OSDN Git Service

gralloc0_register_buffer: initialize gralloc0 when needed
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 18 Apr 2020 08:20:32 +0000 (10:20 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Tue, 29 Dec 2020 12:54:30 +0000 (13:54 +0100)
commit916c3345d793c07aee9433b9948ef6777b8e41ef
treea32d852b8107851e3195314e0663d61e52f9b2fd
parent5e46fdd08b7527ef805d81dbc19da5a1c6e256bd
gralloc0_register_buffer: initialize gralloc0 when needed

Based on Michael Goffioul "Always initialize gralloc0 module"
considerign that !mod->initialized defines the condition when it's needed.

Original commit message:
Both mapper and allocator HIDL adapter uses the same gralloc module, but
the mapper HILD does not fully initialize the module, leaving the
allocator HIDL in limbo if the mapper HIDL is called first.

Fixes SystemUI crash on startup.
cros_gralloc/gralloc0/gralloc0.cc