Skip to content

Commit 8cd7d8d

Browse files
author
Corey Henderson
committed
bail early on exit if cred not remapped
1 parent f03f390 commit 8cd7d8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fopskit.c

+2
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ void fopskit_exit(int ret) {
177177

178178
fopskit_unhook_list(fopskit_cred_hooks);
179179

180+
if (!fopskit_cred_remapped) return;
181+
180182
/* only free init's cred->security if we aren't bailing out with an error */
181183
if (!IN_ERR(ret) && ic->security) kfree(ic->security);
182184

0 commit comments

Comments
 (0)