From: Tejun Heo Date: Wed, 16 Jan 2008 03:10:53 +0000 (+0900) Subject: sysfs: fix bugs in sysfs_rename/move_dir() X-Git-Tag: v2.6.24~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=456ef1553cb2b06729d64c1d1f0f2bda34e9b201;p=pandora-kernel.git sysfs: fix bugs in sysfs_rename/move_dir() sysfs_rename/move_dir() have the following bugs. - On dentry lookup failure, kfree() is called on ERR_PTR() value. - sysfs_move_dir() has an extra dput() on success path. Fix them. Signed-off-by: Tejun Heo Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed