From: Anand Jain Date: Thu, 22 Oct 2015 03:58:05 +0000 (+0800) Subject: btrfs-progs: fix missing initialization of list head for dev_list X-Git-Tag: upstream/4.16.1~1934 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa075c07c09a1d8f36e7a62d6db173d29068624d;p=platform%2Fupstream%2Fbtrfs-progs.git btrfs-progs: fix missing initialization of list head for dev_list Signed-off-by: Anand Jain Signed-off-by: David Sterba --- diff --git a/utils.c b/utils.c index 7ac62f4..cd11091 100644 --- a/utils.c +++ b/utils.c @@ -763,6 +763,7 @@ int btrfs_add_to_fsid(struct btrfs_trans_handle *trans, if (!device->name) goto err_nomem; + INIT_LIST_HEAD(&device->dev_list); ret = btrfs_add_device(trans, root, device); BUG_ON(ret);