diff options
| author | Jian Shen <shenjian15@huawei.com> | 2026-08-07 17:54:33 +0800 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-08-11 16:01:54 +0200 |
| commit | 4f20c628b62eb86babdc28cbd1befa6bd858a62d (patch) | |
| tree | 58053bdfee410dce0e987361dd493e3ea3713bbf /tools/perf/scripts/python/parallel-perf.py | |
| parent | b54074ffb813aa4b97585d97ae1ead69d96432b5 (diff) | |
net: hns3: set msg->desc to NULL after kfree in hclge_query_reg_info()
In hclge_query_reg_info(), msg->desc is freed by kfree(), but the
caller continues to use msg across loop iterations. Set msg->desc
to NULL to avoid leaving a dangling pointer in the reused struct.
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20260807095435.2959246-2-shaojijie@huawei.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions
