OpenCloudOS-Kernel/fs/tracefs
Steven Rostedt (Google) d8f492a059 eventfs: Check for NULL ef in eventfs_set_attr()
The top level events directory dentry does not have a d_fsdata set to a
eventfs_file pointer. This dentry is still passed to eventfs_set_attr().
It can not assume that the d_fsdata is set. Check for that.

Link: https://lore.kernel.org/all/20231112104158.6638-1-milian.wolff@kdab.com/

Fixes: 9aaee3eebc ("eventfs: Save ownership and mode")
Reported-by: Milian Wolff <milian.wolff@kdab.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-11-20 11:59:38 +01:00
..
Makefile eventfs: Implement eventfs dir creation functions 2023-07-30 18:13:33 -04:00
event_inode.c eventfs: Check for NULL ef in eventfs_set_attr() 2023-11-20 11:59:38 +01:00
inode.c tracefs/eventfs: Use dput to free the toplevel events directory 2023-09-07 16:04:47 -04:00
internal.h tracefs/eventfs: Use dput to free the toplevel events directory 2023-09-07 16:04:47 -04:00