From e8fee5584cef2326b8cecc436c68ab78d66fb7ec Mon Sep 17 00:00:00 2001 From: Lincoln Tran Date: Tue, 2 Jun 2020 16:36:01 -0700 Subject: [PATCH] Revert "qcacld-3.0: Update hdd_data_stall_process_event" This reverts Change-Id: Id4d2eaaa2262d7fe2dd6241ae4581a3d0cb09805. This change is incorrect because the caller passes in the bodyptr directly to parameter. The change incorrectly dereferences the parameter. Change-Id: Iaaedae1a3498fc1c10024083ee98ce97c3401f82 CRs-fixed: 2701124 --- core/hdd/src/wlan_hdd_data_stall_detection.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/hdd/src/wlan_hdd_data_stall_detection.c b/core/hdd/src/wlan_hdd_data_stall_detection.c index 0bfa2495e254..9f82edbb7dcc 100644 --- a/core/hdd/src/wlan_hdd_data_stall_detection.c +++ b/core/hdd/src/wlan_hdd_data_stall_detection.c @@ -65,16 +65,14 @@ static inline void hdd_data_stall_send_event(uint32_t reason) * * Process data stall message * - * Return: QDF_STATUS + * Return: void */ -static QDF_STATUS hdd_data_stall_process_event(struct scheduler_msg *msg) +static void hdd_data_stall_process_event( + struct data_stall_event_info *data_stall_info) { - struct data_stall_event_info *data_stall_info = msg->bodyptr; - hdd_data_stall_send_event(data_stall_info->data_stall_type); - - return QDF_STATUS_SUCCESS; } + /** * hdd_data_stall_process_cb() - Process data stall message * @message: data stall message