commit | 6ff835caae10ba6393f542e4170cff470447d47c | [log] [tgz] |
---|---|---|
author | Ramakant Singh <ramakant@codeaurora.org> | Fri Aug 30 18:41:31 2019 +0530 |
committer | Gerrit - the friendly Code Review server <code-review@localhost> | Wed Sep 11 05:38:24 2019 -0700 |
tree | 9949b7463bf835a66b808a8155eec03d672d5c1d | |
parent | 94fee548e24bdf0daec4e47a173377ca9278ee3e [diff] |
composer: Add de-registration callback check. Change-Id: I1c7cccb09575bcea977e78f3c6505f1479e78b83
diff --git a/composer/hwc_callbacks.cpp b/composer/hwc_callbacks.cpp index afe4b93..857716b 100644 --- a/composer/hwc_callbacks.cpp +++ b/composer/hwc_callbacks.cpp
@@ -104,6 +104,10 @@ default: return HWC2::Error::BadParameter; } + + if (!pointer) { + return HWC2::Error::NoResources; + } return HWC2::Error::None; }