mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
qcacld-3.0: Add sanity checks in csr macro
Add sanity checks in csr macro CSR_IS_SESSION_VALID before dereferencing roam session id Change-Id: Ia17b515c95ba72d03d075fbf881698a82d7eec47 CRs-Fixed: 2747938
This commit is contained in:
parent
87194f84e6
commit
4e68c1c28d
1 changed files with 2 additions and 0 deletions
|
|
@ -42,6 +42,8 @@
|
|||
/* No of sessions to be supported, and a session is for Infra, BT-AMP */
|
||||
#define CSR_IS_SESSION_VALID(mac, sessionId) \
|
||||
((sessionId) < WLAN_MAX_VDEVS && \
|
||||
(mac != NULL) && \
|
||||
((mac)->roam.roamSession != NULL) && \
|
||||
(mac)->roam.roamSession[(sessionId)].sessionActive)
|
||||
|
||||
#define CSR_GET_SESSION(mac, sessionId) \
|
||||
|
|
|
|||
Loading…
Reference in a new issue