Skip to content
Commit 71712cf5 authored by Wentao Liang's avatar Wentao Liang Committed by Jakub Kicinski
Browse files

drivers: net: ionic: add missed debugfs cleanup to ionic_probe() error path



The ionic_setup_one() creates a debugfs entry for ionic upon
successful execution. However, the ionic_probe() does not
release the dentry before returning, resulting in a memory
leak.

To fix this bug, we add the ionic_debugfs_del_dev() to release
the resources in a timely manner before returning.

Fixes: 0de38d9f ("ionic: extract common bits from ionic_probe")
Signed-off-by: default avatarWentao Liang <Wentao_liang_g@163.com>
Acked-by: default avatarShannon Nelson <shannon.nelson@amd.com>
Link: https://patch.msgid.link/20241107021756.1677-1-liangwentao@iscas.ac.cn


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent d293958a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment