Kernel Tree For Xiaomi 11 Lite NE 5G
Go to file
wadesong d547766258 qcacld-3.0: Refine CSR scan related action sequences
1) In csr_start, CSR module's scan callback function is currently
registered after scan is enabled. This can result in a potential
memory leak of the per-session CSR scan profile's child buffers
when the following events take place in sequence:

    (1) CSR scan is enabled
    (2) Upper layer invokes CSR module for scan requests
        (per-session CSR scan profile's child buffers are
        allocated here)
    (3) Scan finished, but no CSR callback is registered to
        handle it so the previously allocated child buffers
        are leaked
    (4) CSR scan callback function is registered later, but
        it's already too late

Move the CSR scan enabling code to a place after CSR scan
callback is registered to fix the potential memory leakage.

2) CSR scan should be stopped before sessions are closed, and
session init code should not re-enable CSR scan again during
session clean up stage. Or there will be another chance for
the same issue as in 1) to happen again.

3) CSR scan callback function should be deregistered before
a session is closed and cleaned up.

4) Per-session CSR scan profile pointer should be checked
during session clean up and its buffer and child buffers
should be freed to avoid any potential memory leak.

Change-Id: I99101170a58f63b239db620dea01d210e83d9367
CRs-Fixed: 2228321
2018-04-26 04:07:24 -07:00
components qcacld-3.0: Add feature flag for PMO component (part-1) 2018-04-25 14:30:31 -07:00
core qcacld-3.0: Refine CSR scan related action sequences 2018-04-26 04:07:24 -07:00
uapi/linux qcacld-3.0: uapi: Remove legacy markings 2018-04-24 14:48:24 -07:00
Android.mk
Kbuild qcacld-3.0: Add feature flag for PMO component 2018-04-24 02:30:47 -07:00
Kconfig qcacld-3.0: Remove obsolete CONFIG_PRIMA_WLAN_11AC_HIGH_TP 2018-04-11 03:37:50 -07:00
Makefile qcacld-3.0: Allow out-of-tree build with relative path in M 2018-02-09 11:33:09 -08:00
README.txt

This is CNSS WLAN Host Driver for products starting from iHelium