Merge "FastbootDevice::boot1_1 null pointer dereference" into main am: 608e33f736 am: 828d85ae89 am: 932fe519f6 am: 4a2611cc5b
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2768099 Change-Id: Ie00d5b40094c920bffd548284308bb21e8c0616c Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
3da4ed0062
1 changed files with 2 additions and 1 deletions
|
|
@ -151,7 +151,8 @@ std::string FastbootDevice::GetCurrentSlot() {
|
|||
}
|
||||
|
||||
BootControlClient* FastbootDevice::boot1_1() const {
|
||||
if (boot_control_hal_->GetVersion() >= android::hal::BootControlVersion::BOOTCTL_V1_1) {
|
||||
if (boot_control_hal_ &&
|
||||
boot_control_hal_->GetVersion() >= android::hal::BootControlVersion::BOOTCTL_V1_1) {
|
||||
return boot_control_hal_.get();
|
||||
}
|
||||
return nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue