diff options
| author | 2026-05-07 09:21:46 +0800 | |
|---|---|---|
| committer | 2026-05-18 04:58:41 -0400 | |
| commit | b4070770506ff516e21b4923afdaf7eb5da0e150 (patch) | |
| tree | 3db4d5b428672ecab6127653a947a71729097564 /scripts/Makefile.thinlto | |
| parent | RDMA/mlx5: Use max() macro for bfreg calculation (diff) | |
RDMA/hns: Initialize seqfile before creating file
The debugfs file was created before seq->read and seq->data were set,
leaving a small window where userspace could access an uninitialized
seqfile.
Move debugfs_create_file() after the assignments to avoid this issue.
Also, inline the original init_debugfs_seqfile() since it is not a
really necessary helper.
Fixes: ca7ad04cd5d2 ("RDMA/hns: Add debugfs to hns RoCE")
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20260507012148.1079712-2-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
