platform_hardware_interfaces/graphics/composer/2.1
Lloyd Pique 2765f9d406 Fix crash on hotplug disconnect
ComposerClient destroys its internal model of the display while handling
the onHotPlug event from the Hwc. Subsequently SurfaceFlinger destroys
its model of the display, and destroys all Hwc layers associated with
the display.

This fixes the code for destroying layers to not dereference an invalid
iterator if the display does not exist, allowing destruction to
continue.

It also fixes a similar issue which could occur if a HWC layer is being
created for a display at around the same time as the disconnect event.

Test: hotplug disconnect no longer crashes
Bug: 38464421
Change-Id: I0f2d28fe89fccf997b4bbb9fa6b5c0e6a6e49b93
2018-01-11 13:04:50 -08:00
..
default Fix crash on hotplug disconnect 2018-01-11 13:04:50 -08:00
vts Fix VtsHalGraphicsComposerV2_1TargetTest 2017-08-31 19:57:17 +00:00
Android.bp Updating makefiles for hidl_interface. 2017-11-13 11:39:07 -08:00
IComposer.hal Add PRESENT_FENCE_IS_NOT_RELIABLE 2017-04-12 11:28:55 -07:00
IComposerCallback.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00
IComposerClient.hal Skip Validate 2017-06-22 04:48:33 +00:00
types.hal Convert all comments into "doxygen-ready" comments. 2017-03-29 08:53:58 -07:00