qcacmn: Reset cmd_in_use flag when returning cmd_list to free pool

There is an instance where the cmd_in_use flag is not
reset when cmd_list is not returned to the free pool

Need to reset the cmd_in_use every time the cmd_list is
returned to the free pool

Change-Id: I1fae24dc691779c6c372936d2963f11f98898750
CRs-Fixed: 2379448
This commit is contained in:
Vivek
2019-01-11 12:07:38 +05:30
committed by nshrivas
parent 0c1dedb899
commit 0043ad80db

View File

@@ -256,6 +256,7 @@ wlan_serialization_enqueue_cmd(struct wlan_serialization_command *cmd,
if (status != WLAN_SER_CMD_PENDING && status != WLAN_SER_CMD_ACTIVE) { if (status != WLAN_SER_CMD_PENDING && status != WLAN_SER_CMD_ACTIVE) {
qdf_mem_zero(&cmd_list->cmd, qdf_mem_zero(&cmd_list->cmd,
sizeof(struct wlan_serialization_command)); sizeof(struct wlan_serialization_command));
cmd_list->cmd_in_use = 0;
wlan_serialization_insert_back( wlan_serialization_insert_back(
&pdev_queue->cmd_pool_list, &pdev_queue->cmd_pool_list,
&cmd_list->pdev_node); &cmd_list->pdev_node);