瀏覽代碼

qcacmn: Rectify arguments to qdf_mem_set

Incorrect arguments are being provided to qdf_mem_set
during wlan_global_lmac_if_close().

Add change to provide correct arguments.

Change-Id: I79b2a299a2766a1b8432b725e88c73883fba8700
CRs-Fixed: 2022370
Soumya Bhat 8 年之前
父節點
當前提交
cb16f9de15
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      global_lmac_if/src/wlan_global_lmac_if.c

+ 2 - 2
global_lmac_if/src/wlan_global_lmac_if.c

@@ -126,8 +126,8 @@ EXPORT_SYMBOL(wlan_global_lmac_if_open);
  */
 QDF_STATUS wlan_global_lmac_if_close(struct wlan_objmgr_psoc *psoc)
 {
-	qdf_mem_set(&psoc->soc_cb.tx_ops, 0, sizeof(psoc->soc_cb.tx_ops));
-	qdf_mem_set(&psoc->soc_cb.rx_ops, 0, sizeof(psoc->soc_cb.rx_ops));
+	qdf_mem_set(&psoc->soc_cb.tx_ops, sizeof(psoc->soc_cb.tx_ops), 0);
+	qdf_mem_set(&psoc->soc_cb.rx_ops, sizeof(psoc->soc_cb.rx_ops), 0);
 
 	return QDF_STATUS_SUCCESS;
 }