aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/generated/devlink-user.c
diff options
context:
space:
mode:
authorDragos Tatulea <[email protected]>2023-08-29 17:40:09 +0000
committerMichael S. Tsirkin <[email protected]>2023-10-18 15:29:29 +0000
commitf8a3db47d944a33eac1f37358db560e5aabbfbca (patch)
tree1ddfc6287049fcb42a973dff430055ad9e5ac63b /tools/net/ynl/generated/devlink-user.c
parentvirtio-mmio: fix memory leak of vm_dev (diff)
downloadkernel-f8a3db47d944a33eac1f37358db560e5aabbfbca.tar.gz
kernel-f8a3db47d944a33eac1f37358db560e5aabbfbca.zip
vdpa/mlx5: Fix double release of debugfs entry
The error path in setup_driver deletes the debugfs entry but doesn't clear the pointer. During .dev_del the invalid pointer will be released again causing a crash. This patch fixes the issue by always clearing the debugfs entry in mlx5_vdpa_remove_debugfs. Also, stop removing the debugfs entry in .dev_del op: the debugfs entry is already handled within the setup_driver/teardown_driver scope. Cc: [email protected] Fixes: f0417e72add5 ("vdpa/mlx5: Add and remove debugfs in setup/teardown driver") Signed-off-by: Dragos Tatulea <[email protected]> Reviewed-by: Gal Pressman <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]> Acked-by: Jason Wang <[email protected]>
Diffstat (limited to 'tools/net/ynl/generated/devlink-user.c')
0 files changed, 0 insertions, 0 deletions