Merge "qcacld-3.0: Add Validation for WMA Handle and PSOC in Wake Event"

This commit is contained in:
QCTECMDR Service 2025-09-01 04:26:13 -07:00 • committed by Gerrit - the friendly Code Review server
commit c69d2d15a7

View file

@ -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");