Home
last modified time | relevance | path

Searched hist:c295160b (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/
H A Dhns3_debugfs.cc295160b Wed Sep 06 02:20:15 CDT 2023 Hao Chen <chenhao418@huawei.com> 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>