From 9f20633e6c38573388a873d9a963ba714b376c54 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Fri, 30 Mar 2018 10:31:54 -0700 Subject: [PATCH] HWC2On1Adapter: Fix fd leak in Layer::dump Removes the fence dump from Layer::dump, since: a) It was leaking (a dup() without a close()) b) It's not that useful anyway since it wasn't displaying the actual fence fd Test: Manual Bug: 73979009 Change-Id: I8f7446a05a1bab8c3ca781610ebeb98d17fa483b --- graphics/composer/2.1/utils/hwc2on1adapter/HWC2On1Adapter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/graphics/composer/2.1/utils/hwc2on1adapter/HWC2On1Adapter.cpp b/graphics/composer/2.1/utils/hwc2on1adapter/HWC2On1Adapter.cpp index 77f06bbbe7..d0167d9e03 100644 --- a/graphics/composer/2.1/utils/hwc2on1adapter/HWC2On1Adapter.cpp +++ b/graphics/composer/2.1/utils/hwc2on1adapter/HWC2On1Adapter.cpp @@ -2094,8 +2094,7 @@ std::string HWC2On1Adapter::Layer::dump() const { } else if (mCompositionType == HWC2::Composition::Sideband) { output << " Handle: " << mSidebandStream << '\n'; } else { - output << " Buffer: " << mBuffer.getBuffer() << "/" << - mBuffer.getFence() << '\n'; + output << " Buffer: " << mBuffer.getBuffer() << '\n'; output << fill << " Display frame [LTRB]: " << rectString(mDisplayFrame) << '\n'; output << fill << " Source crop: " <<