Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devpts: return NULL pts 'priv' entry for non-devpts nodes
In commit 8ead9dd ("devpts: more pty driver interface cleanups") I made devpts_get_priv() just return the dentry->fs_data directly. And because I thought it wouldn't happen, I added a warning if you ever saw a pts node that wasn't on devpts. And no, that warning never triggered under any actual real use, but you can trigger it by creating nonsensical pts nodes by hand. So just revert the warning, and make devpts_get_priv() return NULL for that case like it used to. Reported-by: Dmitry Vyukov <[email protected]> Cc: [email protected] # 4.6+ Cc: Eric W Biederman" <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information