summaryrefslogtreecommitdiff
path: root/drivers/vfio/debugfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/vfio/debugfs.c')
-rw-r--r--drivers/vfio/debugfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vfio/debugfs.c b/drivers/vfio/debugfs.c
index 8b0ca7a09064..8a2f1b0cce3f 100644
--- a/drivers/vfio/debugfs.c
+++ b/drivers/vfio/debugfs.c
@@ -97,6 +97,7 @@ void vfio_device_debugfs_init(struct vfio_device *vdev)
void vfio_device_debugfs_exit(struct vfio_device *vdev)
{
debugfs_remove_recursive(vdev->debug_root);
+ vdev->debug_root = NULL;
}
void vfio_debugfs_create_root(void)