OSDN Git Service

icnss: remove pre-alloc memory leak check in platform driver
authorHardik Kantilal Patel <hkpatel@codeaurora.org>
Thu, 27 Apr 2017 06:25:45 +0000 (11:55 +0530)
committerHardik Kantilal Patel <hkpatel@codeaurora.org>
Tue, 2 May 2017 05:39:35 +0000 (11:09 +0530)
commit98dc1b47953d177a3647b9daea2c80869439273f
tree919c4e9e6d7cd4b8441e84fa2abbe50de20115d7
parentf1a10f1598632dc7ab10b369083a21ff68b8398b
icnss: remove pre-alloc memory leak check in platform driver

The WLAN host driver is allocating the memory from pre-alloc pool
during insmod/wlan start up before WLAN driver register and
release the pre-alloc memory after driver unregister/remove.
The Pre-alloc memory leak check and reset in Icnss platform driver
on probe failure and after remove will leads to invalid memory
leak stat and dangling pointer for wlan host driver allocated memory
from the pre-alloc memory pool.

To fix the above issue remove the pre-allaoc memory leak
check and pre-alloc memory pool reset from the icnss platform
driver and export symbol for the pre-alloc memory leak check
and pre-alloc memory pool reset.

CRs-Fixed: 2039483
Change-Id: Id9f01c9d2b5184fbb58935eaf11fd21b50b47908
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
drivers/net/wireless/cnss_prealloc/cnss_prealloc.c
drivers/soc/qcom/icnss.c