]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Free the memory allocated by memdup_user() in fs/sysfs/bin.c
authorCatalin Marinas <catalin.marinas@arm.com>
Wed, 8 Jul 2009 10:17:34 +0000 (11:17 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 8 Jul 2009 16:34:07 +0000 (09:34 -0700)
commitd5ce5b40bc66880d1732461d4b47d7fc3331ed30
tree981ce8897febe8c0691247a5312f14c381359853
parent5e75c5f5d723074b1ceefe916c3005888e431d12
Free the memory allocated by memdup_user() in fs/sysfs/bin.c

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>
fs/sysfs/bin.c