From: Jason Baron Date: Tue, 27 Jul 2010 20:18:01 +0000 (-0700) Subject: dynamic debug: move ddebug_remove_module() down into free_module() X-Git-Tag: v2.6.35~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b82bab4bbe9efa7bc7177fc20620fff19bd95484;p=pandora-kernel.git dynamic debug: move ddebug_remove_module() down into free_module() The command echo "file ec.c +p" >/sys/kernel/debug/dynamic_debug/control causes an oops. Move the call to ddebug_remove_module() down into free_module(). In this way it should be called from all error paths. Currently, we are missing the remove if the module init routine fails. Signed-off-by: Jason Baron Reported-by: Thomas Renninger Tested-by: Thomas Renninger Cc: [2.6.32+] Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed