qcacmn: Use global variable for cpumask

Local variable is used to store cpumask to send it to
irq_set_affinity_hint and qdf_dev_set_irq_affinity APIs.
This memory is used by the kernel later outside the
current contect resulting in invalid memory access.

Fix this by using global variables to store cpumask.

Change-Id: I086f40bf1b3499d2c2ccb1ce18140b2dc2761d04
CRs-Fixed: 2373548
此提交包含在:
Rakshith Suresh Patkar
2018-12-28 15:29:10 +05:30
提交者 nshrivas
父節點 d2dad4b5bd
當前提交 ee84fbeea2
共有 4 個檔案被更改,包括 13 行新增12 行删除

查看文件

@@ -190,6 +190,7 @@ struct qca_napi_info {
uint8_t id;
uint8_t cpu;
int irq;
cpumask_t cpumask;
struct qca_napi_stat stats[NR_CPUS];
#ifdef RECEIVE_OFFLOAD
/* will only be present for data rx CE's */