Skip to content

Commit

Permalink
ocfs2: fix init of uuid_net_key
Browse files Browse the repository at this point in the history
ocfs2_initialize_super() should be copying from the beginning of the uuid.

Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
  • Loading branch information
Mark Fasheh committed Jun 29, 2006
1 parent e7607ab commit a75a6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ocfs2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a75a6e4

Please sign in to comment.