Merge "bootctl: pass cookie to death recipient" into main

This commit is contained in:
Daniel Zheng
2024-10-17 20:09:23 +00:00
committed by Gerrit Code Review

View File

@@ -69,8 +69,8 @@ class BootControlClientAidl final : public BootControlClient {
explicit BootControlClientAidl(std::shared_ptr<IBootControl> module)
: module_(module),
boot_control_death_recipient(AIBinder_DeathRecipient_new(onBootControlServiceDied)) {
binder_status_t status = AIBinder_linkToDeath(module->asBinder().get(),
boot_control_death_recipient, nullptr);
binder_status_t status =
AIBinder_linkToDeath(module->asBinder().get(), boot_control_death_recipient, this);
if (status != STATUS_OK) {
LOG(ERROR) << "Could not link to binder death";
return;