• Linus Torvalds's avatar
    devpts: return NULL pts 'priv' entry for non-devpts nodes · 3e423945
    Linus Torvalds authored
    In commit 8ead9dd5 ("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: default avatarDmitry Vyukov <dvyukov@google.com>
    Cc: stable@vger.kernel.org # 4.6+
    Cc: Eric W Biederman" <ebiederm@xmission.com>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Last commit
Last update
Makefile Loading commit data...
inode.c Loading commit data...