From: Catalin Marinas Date: Wed, 8 Jul 2009 10:17:34 +0000 (+0100) Subject: Free the memory allocated by memdup_user() in fs/sysfs/bin.c X-Git-Tag: v2.6.31-rc3~55 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5ce5b40bc66880d1732461d4b47d7fc3331ed30;p=pandora-kernel.git 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 Cc: Parag Warudkar Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed