No description
  • C 98.2%
  • Assembly 1%
  • Makefile 0.3%
  • Shell 0.2%
  • Python 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ashish Kumar Dhanotiya 64b3fa9645 qcacld-3.0: Fix memory leak in driver dump
Currently when driver gets a command to dump the
driver info, it allocates the memory and retrieves
the information in that allocated memory. Maximum data
that can be copied to user space buffer is equal to
one PAGE_SIZE. In the command driver gets the size of
the data which user space wants to read, minimum of the
user space requested size or one PAGE_SIZE of the data
is copied to user space buffer and current position of
the driver buffer till which the data is copied is
updated to user space is also updated.

Driver copies the retrieved information to the user
space buffer as explained above and updates the position
pointer to the user space. In the next request driver
expects from user space to request the remaining data
from the updated position in last request, once all the
data is copied to user space, driver frees internally
allocated memory.

In case if driver does not get the request to read
remaining data after first request, it does not free
the memory. Current handling of this memory is done
in init domain after stop modules, but since this
memory is allocated in active domain, driver should free
the memory in active domain.
Since with current implementation memory allocated in
active domain is not freed in active domain, memleak is
getting detected.

To resolve above issue, move mem cleanup logic for
driver dump info command from init domain to active domain in stop
modules.

Change-Id: Idb4f35f0a599ad55eebe13348b68562fa401fd7e
CRs-Fixed: 2489877
2019-07-29 11:23:03 -07:00
components qcacld-3.0: Define ext_vdev_ptr and ext_pdev_ptr with specific type 2019-07-27 18:21:17 -07:00
configs qcacld-3.0: Enable SMMU S1 TRANSLATION for SM7150 2019-07-29 06:29:32 -07:00
core qcacld-3.0: Fix memory leak in driver dump 2019-07-29 11:23:03 -07:00
os_if qcacld-3.0: Fix nan disable issue on NAN+SAP concurrency 2019-07-16 17:15:00 -07:00
uapi/linux qcacld-3.0: Fix tab stop checkpatch warnings 2018-09-13 13:20:38 -07:00
Android.mk qcacld-3.0: set LOCAL_MODULE_TAGS to optional variant 2019-05-27 10:37:31 -07:00
Kbuild qcacld-3.0: Define void * data members of cp_stats with specific type 2019-07-26 18:21:46 -07:00
Kconfig qcacld-3.0: Combine all NAN related flags with WLAN_FEATURE_NAN 2019-02-04 10:44:30 -08:00
Makefile qcacld-3.0: Pass WLAN_ROOT value for make clean 2018-06-09 00:09:16 -07:00
README.txt

This is CNSS WLAN Host Driver for products starting from iHelium