mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
Merge "qcacld-3.0: Add Validation for WMA Handle and PSOC in Wake Event"
This commit is contained in:
commit
c69d2d15a7
1 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2013-2021 The Linux Foundation. All rights reserved.
|
||||
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
||||
* Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
||||
*
|
||||
* Permission to use, copy, modify, and/or distribute this software for
|
||||
* any purpose with or without fee is hereby granted, provided that the
|
||||
|
|
@ -2813,6 +2813,9 @@ int wma_wow_wakeup_host_event(void *handle, uint8_t *event, uint32_t len)
|
|||
WMI_WOW_WAKEUP_HOST_EVENTID_param_tlvs *event_param;
|
||||
WOW_EVENT_INFO_fixed_param *wake_info;
|
||||
|
||||
if (!wma || !wma->psoc)
|
||||
return -EINVAL;
|
||||
|
||||
event_param = (WMI_WOW_WAKEUP_HOST_EVENTID_param_tlvs *)event;
|
||||
if (!event_param) {
|
||||
wma_err("Wake event data is null");
|
||||
|
|
|
|||
Loading…
Reference in a new issue