summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-05-04 03:03:32 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-05-04 03:03:32 +0000
commit4db155f2cb9f50be61481a04df181dd097b82a08 (patch)
treeedf2de47c7e69bd784c69073768eec95c0142b0e
parente9a5e9e57380e38283571eb3bb75db941a44b378 (diff)
parent6061a3b8f56e0d81cb58762afb7de9f2384b38ce (diff)
downloadnative-4db155f2cb9f50be61481a04df181dd097b82a08.tar.gz
Merge cherrypicks of ['googleplex-android-review.googlesource.com/22865717'] into sparse-10055797-L00100000960423622.
SPARSE_CHANGE: I08f938764dda78e6a85e625ae6767816582f5312 Change-Id: Iec39c06f56f492f9430c4e9dcbf2dbfb3301440f
-rw-r--r--services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp b/services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp
index 79dcd159d3..fb5f0cb30f 100644
--- a/services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp
+++ b/services/surfaceflinger/DisplayHardware/AidlComposerHal.cpp
@@ -765,6 +765,7 @@ Error AidlComposer::execute() {
auto status = mAidlComposerClient->executeCommands(commands, &results);
if (!status.isOk()) {
ALOGE("executeCommands failed %s", status.getDescription().c_str());
+ mWriter.reset();
return static_cast<Error>(status.getServiceSpecificError());
}
@@ -776,6 +777,7 @@ Error AidlComposer::execute() {
const auto index = static_cast<size_t>(cmdErr.commandIndex);
if (index < 0 || index >= commands.size()) {
ALOGE("invalid command index %zu", index);
+ mWriter.reset();
return Error::BAD_PARAMETER;
}