system/hardware/interfaces
Revisão | ab761288e2cbfd7f6425b212d73b814804aac189 (tree) |
---|---|
Hora | 2019-01-25 13:08:10 |
Autor | Treehugger Robot <treehugger-gerrit@goog...> |
Commiter | Gerrit Code Review |
Merge "Assign a new future before calling update()"
@@ -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()) { |