aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index d6f1996de629..ecf0633ab8cc 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -2755,6 +2755,8 @@ static struct btrfs_device *add_missing_dev(struct btrfs_root *root,
2755 struct btrfs_fs_devices *fs_devices = root->fs_info->fs_devices; 2755 struct btrfs_fs_devices *fs_devices = root->fs_info->fs_devices;
2756 2756
2757 device = kzalloc(sizeof(*device), GFP_NOFS); 2757 device = kzalloc(sizeof(*device), GFP_NOFS);
2758 if (!device)
2759 return NULL;
2758 list_add(&device->dev_list, 2760 list_add(&device->dev_list,
2759 &fs_devices->devices); 2761 &fs_devices->devices);
2760 device->barriers = 1; 2762 device->barriers = 1;