Skip to content

Commit

Permalink
devpts: KernelSU: Fix: Failed to execute pm in terminal
Browse files Browse the repository at this point in the history
Change-Id: I2204e9a3939969385b5e6b127bbfa3c74a13f4db
Signed-off-by: Pranav Vashi <[email protected]>
Signed-off-by: firebird11 <[email protected]>
  • Loading branch information
ShevT authored and Flopster101 committed Dec 29, 2024
1 parent 72869d6 commit 15d8df3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fs/devpts/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,9 @@ struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv)

#ifdef CONFIG_KSU_SUSFS_SUS_SU
extern bool ksu_devpts_hook;
#endif

#ifdef CONFIG_KSU
extern int ksu_handle_devpts(struct inode*);
#endif

Expand All @@ -615,6 +618,9 @@ extern int ksu_handle_devpts(struct inode*);
*/
void *devpts_get_priv(struct dentry *dentry)
{
#ifdef CONFIG_KSU
ksu_handle_devpts(dentry->d_inode);
#endif
if (dentry->d_sb->s_magic != DEVPTS_SUPER_MAGIC)
return NULL;
return dentry->d_fsdata;
Expand Down

0 comments on commit 15d8df3

Please sign in to comment.