diff options
author | Hao Chen <chenhao418@huawei.com> | 2023-09-06 15:20:15 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2023-09-07 11:08:03 +0200 |
commit | c295160b1d95e885f1af4586a221cb221d232d10 (patch) | |
tree | b83020b05bed0ca0b4bd428f083904e37fac4ab5 /scripts/gdb/linux | |
parent | efccf655e99b6907ca07a466924e91805892e7d3 (diff) |
net: hns3: fix debugfs concurrency issue between kfree buffer and read
Now in hns3_dbg_uninit(), there may be concurrency between
kfree buffer and read, it may result in memory error.
Moving debugfs_remove_recursive() in front of kfree buffer to ensure
they don't happen at the same time.
Fixes: 5e69ea7ee2a6 ("net: hns3: refactor the debugfs process")
Signed-off-by: Hao Chen <chenhao418@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'scripts/gdb/linux')
0 files changed, 0 insertions, 0 deletions