aboutsummaryrefslogtreecommitdiffstats
path: root/disk-io.c
diff options
context:
space:
mode:
Diffstat (limited to 'disk-io.c')
-rw-r--r--disk-io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/disk-io.c b/disk-io.c
index 9ffe6e4..30e2370 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -1280,6 +1280,7 @@ static int close_all_devices(struct btrfs_fs_info *fs_info)
kfree(device->label);
kfree(device);
}
+ list_del(&fs_info->fs_devices->list);
kfree(fs_info->fs_devices);
return 0;
}