]> git.baikalelectronics.ru Git - kernel.git/commit
fs: __file_remove_privs(): restore call to inode_has_no_xattr()
authorStefan Roesch <shr@fb.com>
Tue, 16 Aug 2022 15:31:58 +0000 (08:31 -0700)
committerChristian Brauner (Microsoft) <brauner@kernel.org>
Thu, 18 Aug 2022 07:39:33 +0000 (09:39 +0200)
commit064c062a2c57bdcba2606619e02a2c5d89de7f43
tree4e8a50300911f3c79e946884508db52e42a2ff23
parent3d7dcb2c5450a57f60c448f42be48fdfe456bfdf
fs: __file_remove_privs(): restore call to inode_has_no_xattr()

This restores the call to inode_has_no_xattr() in the function
__file_remove_privs(). In case the dentry_meeds_remove_privs() returned
0, the function inode_has_no_xattr() was not called.

Signed-off-by: Stefan Roesch <shr@fb.com>
Fixes: 996004a4af53 ("fs: add __remove_file_privs() with flags parameter")
Reviewed-by: Christian Brauner (Microsoft) <brauner@kernel.org>
Link: https://lore.kernel.org/r/20220816153158.1925040-1-shr@fb.com
Signed-off-by: Christian Brauner (Microsoft) <brauner@kernel.org>
fs/inode.c