summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarun Reddy Yeturu <varunreddy.yeturu@codeaurora.org>2017-03-07 16:27:02 -0800
committerPrakash Dhavali <pdhavali@codeaurora.org>2017-03-09 21:08:39 -0800
commitae76d9cf0563a1d6da8c4e0d48cb521acf2a86e5 (patch)
tree46606a605688f1d38e1a952dc018abe70c37ea78
parent883fe433fb877dae178923de7a3ca46af1a58a62 (diff)
qcacld-3.0: Fix the NULL dereference in roam event
Fix the NULL pointer dereference and instead pass the length of the data Change-Id: I6be5d95d4e4795b1f1df5d68d5adfb0648be9094 CRs-Fixed: 2016230
-rw-r--r--core/wma/src/wma_features.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/wma/src/wma_features.c b/core/wma/src/wma_features.c
index 8c12611ca110..bf527f54357b 100644
--- a/core/wma/src/wma_features.c
+++ b/core/wma/src/wma_features.c
@@ -3458,10 +3458,10 @@ int wma_wow_wakeup_host_event(void *handle, uint8_t *event,
* WMI_ROAM_REASON_HO_FAILED event and it will be handled by
* wma_roam_event_callback().
*/
- wma_peer_debug_log(wake_info->vdev_id, DEBUG_WOW_ROAM_EVENT,
- DEBUG_INVALID_PEER_ID, NULL, NULL,
- wake_info->wake_reason,
- *(uintptr_t *)param_buf->wow_packet_buffer);
+ wma_peer_debug_log(wake_info->vdev_id,
+ DEBUG_WOW_ROAM_EVENT, DEBUG_INVALID_PEER_ID,
+ NULL, NULL, wake_info->wake_reason,
+ wow_buf_pkt_len);
WMA_LOGD("Host woken up because of roam event");
if (param_buf->wow_packet_buffer) {
/* Roam event is embedded in wow_packet_buffer */