• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/hardware/interfaces


Commit MetaInfo

修订版ab761288e2cbfd7f6425b212d73b814804aac189 (tree)
时间2019-01-25 13:08:10
作者Treehugger Robot <treehugger-gerrit@goog...>
CommiterGerrit Code Review

Log Message

Merge "Assign a new future before calling update()"

更改概述

差异

--- a/wifi/keystore/1.0/default/keystore.cpp
+++ b/wifi/keystore/1.0/default/keystore.cpp
@@ -213,7 +213,8 @@ Return<void> Keystore::sign(const hidl_string& keyId, const hidl_vec<uint8_t>& d
213213 const uint8_t* in = dataToSign.data();
214214 size_t len = dataToSign.size();
215215 do {
216- future = {};
216+ promise = new OperationResultPromise();
217+ future = promise->get_future();
217218 binder_result = service->update(promise, handle, KeymasterArguments(params),
218219 std::vector<uint8_t>(in, in + len), &error_code);
219220 if (!binder_result.isOk()) {