Re: [PATCH] ionic: fix memory leak in ionic_probe
From: Jakub Kicinski
Date: Tue Nov 05 2024 - 18:44:18 EST
On Tue, 5 Nov 2024 13:34:33 +0800 Wentao Liang wrote:
> In line 334, 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() before
> line 397 to release the resources before the function returns.
If you haven't reposed yet please make sure you CC netdev@ on v2