diff options
| author | Wang Qing <wangqing@vivo.com> | 2021-03-13 11:33:48 +0800 |
|---|---|---|
| committer | Thomas Bogendoerfer <tsbogend@alpha.franken.de> | 2021-03-14 14:09:49 +0100 |
| commit | 63d6c98168916f0c18f7bb7a28e27efd95524409 (patch) | |
| tree | f2e14e25487dbec5e027109f9117ad1d31b2c7e4 /lib/mpi/mpiutil.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 <wangqing@vivo.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
