Skip to content

Commit

Permalink
bail early on exit if cred not remapped
Browse files Browse the repository at this point in the history
  • Loading branch information
Corey Henderson committed Apr 23, 2017
1 parent f03f390 commit 8cd7d8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fopskit.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ void fopskit_exit(int ret) {

fopskit_unhook_list(fopskit_cred_hooks);

if (!fopskit_cred_remapped) return;

/* only free init's cred->security if we aren't bailing out with an error */
if (!IN_ERR(ret) && ic->security) kfree(ic->security);

Expand Down

0 comments on commit 8cd7d8d

Please sign in to comment.