From: Jesper Juhl Date: Thu, 28 Sep 2006 21:56:01 +0000 (+0200) Subject: Driver core: Don't leak 'old_class_name' in drivers/base/core.c::device_rename() X-Git-Tag: v2.6.19-rc3~126^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=952ab431cd36c7ab573f685af8679c3677cbdc29;p=pandora-kernel.git Driver core: Don't leak 'old_class_name' in drivers/base/core.c::device_rename() If kmalloc() fails to allocate space for 'old_symlink_name' in drivers/base/core.c::device_rename(), then we'll leak 'old_class_name'. Spotted by the Coverity checker. Signed-off-by: Jesper Juhl Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed