diff mbox

btrfs-progs: fix missing init dev list head for dev_list

Message ID 1445486285-1232-1-git-send-email-anand.jain@oracle.com (mailing list archive)
State Accepted
Headers show

Commit Message

Anand Jain Oct. 22, 2015, 3:58 a.m. UTC
---
 utils.c | 1 +
 1 file changed, 1 insertion(+)

Comments

David Sterba Oct. 23, 2015, 11:01 a.m. UTC | #1
On Thu, Oct 22, 2015 at 11:58:05AM +0800, Anand Jain wrote:

S-O-B line added and applied, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/utils.c b/utils.c
index f1e3248..b754686 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);