linux-stable/drivers/android
Qi Zheng ee95051c0c binder: fix memory leak in binder_init()
commit adb9743d6a upstream.

In binder_init(), the destruction of binder_alloc_shrinker_init() is not
performed in the wrong path, which will cause memory leaks. So this commit
introduces binder_alloc_shrinker_exit() and calls it in the wrong path to
fix that.

Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
Acked-by: Carlos Llamas <cmllamas@google.com>
Fixes: f2517eb76f ("android: binder: Add global lru shrinker to binder")
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/20230625154937.64316-1-qi.zheng@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-08-16 18:32:21 +02:00
..
Kconfig remove CONFIG_ANDROID 2022-07-01 10:41:09 +02:00
Makefile
binder.c binder: fix memory leak in binder_init() 2023-08-16 18:32:21 +02:00
binder_alloc.c binder: fix memory leak in binder_init() 2023-08-16 18:32:21 +02:00
binder_alloc.h binder: fix memory leak in binder_init() 2023-08-16 18:32:21 +02:00
binder_alloc_selftest.c Revert "android: binder: stop saving a pointer to the VMA" 2023-05-13 20:30:16 +09:00
binder_internal.h binder: return pending info for frozen async txns 2023-01-19 17:14:18 +01:00
binder_trace.h Binder: add TF_UPDATE_TXN to replace outdated txn 2022-06-27 16:16:30 +02:00
binderfs.c Char/Misc and other driver subsystem changes for 6.3-rc1 2023-02-24 12:47:33 -08:00