Commit 04180b7a authored by Juan Zhou's avatar Juan Zhou
Browse files

RDMA/hns: Fix memory leak in POE debugfs

driver inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8OLBT



--------------------------------------------------------------------------

In the init_poe_ch_debugfs() function, the variable dbgfs can be
directly read without applying for additional memory. Otherwise,
memory leakage may occur.

Fixes: b6643496 ("RDMA/hns: Refactor hns RoCE debugfs")
Signed-off-by: default avatarJuan Zhou <zhoujuan51@h-partners.com>
Signed-off-by: default avatarJunxian Huang <huangjunxian6@hisilicon.com>
parent 42d7d2ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment