diff options
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r-- | lib/dynamic_debug.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c index 8274c4ea75e0..214828c65625 100644 --- a/lib/dynamic_debug.c +++ b/lib/dynamic_debug.c | |||
@@ -929,9 +929,10 @@ int ddebug_remove_module(const char *mod_name) | |||
929 | 929 | ||
930 | mutex_lock(&ddebug_lock); | 930 | mutex_lock(&ddebug_lock); |
931 | list_for_each_entry_safe(dt, nextdt, &ddebug_tables, link) { | 931 | list_for_each_entry_safe(dt, nextdt, &ddebug_tables, link) { |
932 | if (!strcmp(dt->mod_name, mod_name)) { | 932 | if (dt->mod_name == mod_name) { |
933 | ddebug_table_free(dt); | 933 | ddebug_table_free(dt); |
934 | ret = 0; | 934 | ret = 0; |
935 | break; | ||
935 | } | 936 | } |
936 | } | 937 | } |
937 | mutex_unlock(&ddebug_lock); | 938 | mutex_unlock(&ddebug_lock); |