mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Return immediately when prop is not found
- when VHAL prop is not supported, getPropConfigs calls hidl callback with INVALID_ARG and has to return. - otherwise, there will be two callbacks invoked from VHAL. Bug: 168834308 Test: seahawk should boot up Change-Id: I41f5ddf26b9ba70221d59bae10d7ca9a2133a9eb
This commit is contained in:
@@ -78,6 +78,7 @@ Return<void> VehicleHalManager::getPropConfigs(const hidl_vec<int32_t> &properti
|
||||
} else {
|
||||
ALOGW("Requested config for undefined property: 0x%x", prop);
|
||||
_hidl_cb(StatusCode::INVALID_ARG, hidl_vec<VehiclePropConfig>());
|
||||
return Void();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user