mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
qcacmn: Fix memset bug on error path
Fix the incorrect order of arguments to memset in two places in the error path. CRs-Fixed: 1082204 Change-Id: I4cd6e23930d4f34bb732499eda2b20845b09a3b2
This commit is contained in:
parent
f92c19b868
commit
84deb9727e
1 changed files with 2 additions and 2 deletions
|
|
@ -1011,7 +1011,7 @@ lab_err_hotplug:
|
|||
hnc_tput_hook(0);
|
||||
hnc_hotplug_hook(0);
|
||||
lab_err_topology:
|
||||
memset(napid->napi_cpu, sizeof(struct qca_napi_cpu) * NR_CPUS, 0);
|
||||
memset(napid->napi_cpu, 0, sizeof(struct qca_napi_cpu) * NR_CPUS);
|
||||
lab_rss_init:
|
||||
NAPI_DEBUG("<-- [rc=%d]", rc);
|
||||
return rc;
|
||||
|
|
@ -1039,7 +1039,7 @@ int hif_napi_cpu_deinit(void *ctx)
|
|||
rc = hnc_hotplug_hook(0);
|
||||
|
||||
/* clear the topology table */
|
||||
memset(napid->napi_cpu, sizeof(struct qca_napi_cpu) * NR_CPUS, 0);
|
||||
memset(napid->napi_cpu, 0, sizeof(struct qca_napi_cpu) * NR_CPUS);
|
||||
|
||||
NAPI_DEBUG("<--%s[rc=%d]", __func__, rc);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue