From ee974b200d9e889f333025a478be67b699b1cb13 Mon Sep 17 00:00:00 2001 From: Masamichi Takagi Date: Thu, 11 Mar 2021 11:01:06 +0900 Subject: [PATCH] mcexec_open_exec: fix missing fput on error Change-Id: I3ac94e336dc54ec313e69c0fa85c17086dc256fd --- executer/kernel/mcctrl/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/executer/kernel/mcctrl/control.c b/executer/kernel/mcctrl/control.c index 3bac86db..29254836 100644 --- a/executer/kernel/mcctrl/control.c +++ b/executer/kernel/mcctrl/control.c @@ -2010,7 +2010,7 @@ int mcexec_open_exec(ihk_os_t os, char * __user filename) fullpath = d_path(&file->f_path, pathbuf, PATH_MAX); if (IS_ERR(fullpath)) { retval = PTR_ERR(fullpath); - goto out_free; + goto out_put_file; } mcef = kmalloc(sizeof(*mcef), GFP_KERNEL);