system/hardware/interfaces
リビジョン | 0e8ba32c924c6286a2c60b6095a075721c23ec5f (tree) |
---|---|
日時 | 2019-01-25 13:25:26 |
作者 | Branden Archer <brarcher@goog...> |
コミッター | android-build-merger |
Merge "Assign a new future before calling update()" am: ab761288e2 am: 90f296c067
am: eeb86d1670
Change-Id: I70f012d6f9316ca3c3261fe2175edc69d52366f6
@@ -213,7 +213,8 @@ Return<void> Keystore::sign(const hidl_string& keyId, const hidl_vec<uint8_t>& d | ||
213 | 213 | const uint8_t* in = dataToSign.data(); |
214 | 214 | size_t len = dataToSign.size(); |
215 | 215 | do { |
216 | - future = {}; | |
216 | + promise = new OperationResultPromise(); | |
217 | + future = promise->get_future(); | |
217 | 218 | binder_result = service->update(promise, handle, KeymasterArguments(params), |
218 | 219 | std::vector<uint8_t>(in, in + len), &error_code); |
219 | 220 | if (!binder_result.isOk()) { |