linux56-tkg: Fix tp_smapi_ec patchset

This commit is contained in:
Tk-Glitch
2020-05-10 19:14:50 +02:00
parent eeaa886819
commit 064d5a39df
2 changed files with 4 additions and 3 deletions

View File

@@ -2290,10 +2290,11 @@ index cb81623a8b09..a92b0f6061ac 100644
int do_truncate(struct dentry *dentry, loff_t length, unsigned int time_attrs,
struct file *filp)
{
@@ -1068,8 +1071,10 @@ long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode)
@@ -1068,8 +1071,11 @@ long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode)
long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode)
{
+ struct filename *tmp;
+ tmp = getname(filename);
struct open_how how = build_open_how(flags, mode);
return do_sys_openat2(dfd, filename, &how);