diff options
author | Wang Qing <[email protected]> | 2021-03-13 11:33:48 +0800 |
---|---|---|
committer | Thomas Bogendoerfer <[email protected]> | 2021-03-14 14:09:49 +0100 |
commit | 63d6c98168916f0c18f7bb7a28e27efd95524409 (patch) | |
tree | f2e14e25487dbec5e027109f9117ad1d31b2c7e4 /tools/lib/api/fs/tracing_path.c | |
parent | c6972fb9ba8aab384568665411015b7deb8a8609 (diff) |
mips: kernel: use DEFINE_DEBUGFS_ATTRIBUTE with debugfs_create_file_unsafe()
debugfs_create_file_unsafe does not protect the fops handed to it
against file removal. DEFINE_DEBUGFS_ATTRIBUTE makes the fops aware of
the file lifetime and thus protects it against removal.
Signed-off-by: Wang Qing <[email protected]>
Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'tools/lib/api/fs/tracing_path.c')
0 files changed, 0 insertions, 0 deletions