android_kernel_lge_bullhead/drivers/net/wireless/wcnss
Srinivas Girigowda 5935a691c6 wcnss: fix the potential memory leak and heap overflow
The wcnss platform driver update the wlan calibration data
by the user space wlan daemon. The wlan user space daemon store
the updated wlan calibration data reported by wlan firmware in
user space and write it back to the wcnss platform calibration
data buffer for the calibration data download and update.

During the wlan calibration data store and retrieve operation
there are some potential race condition which leads to memory leak
and buffer overflow during the context switch.

Fix the above issue by adding protection code and avoid usage of
global pointer during the device file read and write operation.

Bug: 62377236
CRs-Fixed: 2015858
Change-Id: Ib5b57eb86dcb4e6ed799b5222d06396eaabfaad3
Signed-off-by: Sarada Prasanna Garnayak <sgarna@codeaurora.org>
Signed-off-by: Srinivas Girigowda <sgirigow@codeaurora.org>
2017-07-18 22:29:15 +00:00
..
Makefile cnss: Refactor PreAlloc Driver for CLD Architecture 2016-02-19 21:56:19 +00:00
qcomwlan_secif.c cnss: Implementation of 802.11w (BIP) algorithm 2013-12-30 12:20:00 -08:00
wcnss_vreg.c wcnss: get MUX control before dumping IRIS register 2015-01-09 20:05:47 +05:30
wcnss_wlan.c wcnss: fix the potential memory leak and heap overflow 2017-07-18 22:29:15 +00:00