mirror of
https://github.com/joel16/android_kernel_sony_msm8994_rework.git
synced 2025-02-19 09:51:35 +00:00
![Catalin Marinas](/assets/img/avatar_default.png)
Commit 1c8542c7bb replaced kmalloc() with memdup_user() in the write() function but also dropped the kfree(temp). The memdup_user() function allocates memory which is never freed. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Cc: Parag Warudkar <parag.warudkar@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>