Merge "Add a null pointer check for wifi_chip in configureChipToSupportIfaceTypeInternal." am: 46417dd857
am: eb25ad2692
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2256003 Change-Id: I472e4d1394b8b1de94547da0d01334f1eb514bff Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
fc9f86a157
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue