提交 a75a6e4c 编写于 作者: M Mark Fasheh

ocfs2: fix init of uuid_net_key

ocfs2_initialize_super() should be copying from the beginning of the uuid.
Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
上级 e7607ab3
......@@ -1417,7 +1417,7 @@ static int ocfs2_initialize_super(struct super_block *sb,
goto bail;
}
memcpy(&uuid_net_key, &osb->uuid[i], sizeof(osb->net_key));
memcpy(&uuid_net_key, osb->uuid, sizeof(uuid_net_key));
osb->net_key = le32_to_cpu(uuid_net_key);
strncpy(osb->vol_label, di->id2.i_super.s_label, 63);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册