Skip to content

Commit

Permalink
Merge pull request torvalds#472 from ddiss/lkl_show_config
Browse files Browse the repository at this point in the history
lkl-config: fix lkl_show_config declaration
  • Loading branch information
thehajime authored Sep 17, 2019
2 parents 3738012 + 1fdcf7d commit 1be6745
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tools/lkl/include/lkl_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ struct lkl_config {

int lkl_load_config_json(struct lkl_config *cfg, char *jstr);
int lkl_load_config_env(struct lkl_config *cfg);
void show_config(struct lkl_config *cfg);
void lkl_show_config(struct lkl_config *cfg);
int lkl_load_config_pre(struct lkl_config *cfg);
int lkl_load_config_post(struct lkl_config *cfg);
int lkl_unload_config(struct lkl_config *cfg);
Expand Down
1 change: 0 additions & 1 deletion tools/lkl/lib/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,6 @@ int lkl_unload_config(struct lkl_config *cfg)
}

lkl_clean_config(cfg);
free(cfg);
}

return 0;
Expand Down
4 changes: 4 additions & 0 deletions tools/lkl/lib/hijack/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,11 @@ hijack_fini(void)
pause();
}

if (!cfg)
return;

lkl_unload_config(cfg);
free(cfg);

if (!lkl_running)
return;
Expand Down

0 comments on commit 1be6745

Please sign in to comment.