mcexec_open_exec: fix missing fput on error

Change-Id: I3ac94e336dc54ec313e69c0fa85c17086dc256fd
This commit is contained in:
Masamichi Takagi
2021-03-11 11:01:06 +09:00
committed by Masamichi Takagi
parent 546cafe6bc
commit ee974b200d

View File

@ -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);