Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304055
b: refs/heads/master
c: af44239
h: refs/heads/master
i:
  304053: 9820e1b
  304051: e13a0ac
  304047: 4fc8530
v: v3
  • Loading branch information
Jim Cromie authored and Greg Kroah-Hartman committed Apr 30, 2012
1 parent 3f06c53 commit 4c282ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6ab676e96422f33a873006096f928feeded7ce3b
refs/heads/master: af442399fcf378a21ffe924b182f6d9ee70001ca
19 changes: 8 additions & 11 deletions trunk/lib/dynamic_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,7 @@ static int __init dynamic_debug_init(void)
if (strcmp(modname, iter->modname)) {
ret = ddebug_add_module(iter_start, n, modname);
if (ret)
goto out_free;
goto out_err;
n = 0;
modname = iter->modname;
iter_start = iter;
Expand All @@ -993,9 +993,11 @@ static int __init dynamic_debug_init(void)
}
ret = ddebug_add_module(iter_start, n, modname);
if (ret)
goto out_free;
goto out_err;

/* ddebug_query boot param got passed -> set it up */
ddebug_init_success = 1;

/* apply ddebug_query boot param, dont unload tables on err */
if (ddebug_setup_string[0] != '\0') {
pr_warn("ddebug_query param name is deprecated,"
" change it to dyndbg\n");
Expand All @@ -1005,9 +1007,6 @@ static int __init dynamic_debug_init(void)
ddebug_setup_string);
else
pr_info("%d changes by ddebug_query\n", ret);

/* keep tables even on ddebug_query parse error */
ret = 0;
}
/* now that ddebug tables are loaded, process all boot args
* again to find and activate queries given in dyndbg params.
Expand All @@ -1021,12 +1020,10 @@ static int __init dynamic_debug_init(void)
parse_args("dyndbg params", cmdline, NULL,
0, 0, 0, &ddebug_dyndbg_boot_param_cb);
kfree(cmdline);
return 0;

out_free:
if (ret)
ddebug_remove_all_tables();
else
ddebug_init_success = 1;
out_err:
ddebug_remove_all_tables();
return 0;
}
/* Allow early initialization for boot messages via boot param */
Expand Down

0 comments on commit 4c282ad

Please sign in to comment.