OSDN Git Service

bufferhubd: Fix an error on not closing post_fence explicitly.
authorAlex Vakulenko <avakulenko@google.com>
Fri, 31 Mar 2017 16:10:43 +0000 (09:10 -0700)
committerAlex Vakulenko <avakulenko@google.com>
Fri, 31 Mar 2017 17:45:52 +0000 (10:45 -0700)
There is a typo in the code that instead of calling close() on a Post
fence, actually did get_fd() which is really a no-op.

Fixed by changing the call to call() explicitly.

Bug: None
Test: `m -j32` succeeds. Sailfish boots, CubeSea works.
Change-Id: If788aa8ea291317f0618724ecc35a4b355575772

services/vr/bufferhubd/producer_channel.cpp

index 98a419f..43010b0 100644 (file)
@@ -238,7 +238,7 @@ LocalFence ProducerChannel::OnProducerGain(Message& message) {
 
   ClearAvailable();
   producer_owns_ = true;
-  post_fence_.get_fd();
+  post_fence_.close();
   return std::move(returned_fence_);
 }