diff --git a/hook_patch/4.19_hook_patch.diff b/hook_patch/4.19_hook_patch.diff index 17b594dd1b12..9f8ae8861f01 100644 --- a/hook_patch/4.19_hook_patch.diff +++ b/hook_patch/4.19_hook_patch.diff @@ -147,9 +147,9 @@ */ void *devpts_get_priv(struct dentry *dentry) { -+ #ifdef CONFIG_KSU ++#ifdef CONFIG_KSU + ksu_handle_devpts(dentry->d_inode); -+ #endif ++#endif if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC) return NULL; return dentry->d_fsdata; diff --git a/hook_patch/4.4_hook_patch.diff b/hook_patch/4.4_hook_patch.diff index 50edc2ad302f..601baf0f29a8 100644 --- a/hook_patch/4.4_hook_patch.diff +++ b/hook_patch/4.4_hook_patch.diff @@ -148,6 +148,8 @@ return dentry; } +!! THIS PATCH IS UNTESTED !! + +#ifdef CONFIG_KSU +extern int ksu_handle_devpts(struct inode*); +#endif