]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
9p: missing chunk of "fs/9p: Don't update file type when updating file attributes"
authorAl Viro <viro@zeniv.linux.org.uk>
Sun, 31 Jan 2021 19:37:39 +0000 (14:37 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 09:46:24 +0000 (11:46 +0200)
commita0764df52607180d3b3712d698f491196731844b
tree4236c5cd6eaf358308e8bb59b116e60e76a6d560
parent84bae26850e3b384a45f0f9a5f8b3b5983afacd8
9p: missing chunk of "fs/9p: Don't update file type when updating file attributes"

commit b577d0cd2104fdfcf0ded3707540a12be8ddd8b0 upstream.

In commit 45089142b149 Aneesh had missed one (admittedly, very unlikely
to hit) case in v9fs_stat2inode_dotl().  However, the same considerations
apply there as well - we have no business whatsoever to change ->i_rdev
or the file type.

Cc: Tadeusz Struk <tadeusz.struk@linaro.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/9p/vfs_inode_dotl.c