binder: fix memory leak [1/1]
authorchangqing.gao <changqing.gao@amlogic.com>
Thu, 4 Apr 2019 09:24:40 +0000 (17:24 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Wed, 17 Apr 2019 10:58:12 +0000 (03:58 -0700)
commit1b72d60eddaf08f2b32c8cb2f52b32be132c9b36
treec8024c90af6580f9f6b52846fcb6065b34c302e4
parentaedad8194ae947e378767c7b3c15f685580afdf4
binder: fix memory leak [1/1]

PD#TV-3541

Problem:
1.only vmalloc 4KB at first.
2.if user space need more memory, try to allocate a new vmalloc
  range with large size and move all related data to new place.
3.the first 4KB is not free when release this binder.

Solution:
free the first 4KB when release binder.

Verify:
R311

Change-Id: I4429de04a260671e4626b77ec340e47e436d5c8d
Signed-off-by: changqing.gao <changqing.gao@amlogic.com>
drivers/android/binder_alloc.c
drivers/android/binder_alloc.h