mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Add a null pointer check for wifi_chip in am: 4e6349240e am: 26b625704e
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2279026 Change-Id: I3a56d4c73b2c3c40dfb650a32cd431f414b4ba7c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -66,7 +66,7 @@ bool findAnyModeSupportingIfaceType(
|
||||
bool configureChipToSupportIfaceTypeInternal(const sp<IWifiChip>& wifi_chip,
|
||||
IfaceType type,
|
||||
ChipModeId* configured_mode_id) {
|
||||
if (!configured_mode_id) {
|
||||
if (!configured_mode_id || !wifi_chip.get()) {
|
||||
return false;
|
||||
}
|
||||
const auto& status_and_modes = HIDL_INVOKE(wifi_chip, getAvailableModes);
|
||||
|
||||
Reference in New Issue
Block a user