Skip to content

Commit

Permalink
chain.c32: fix specification of disk by GUID (UUID)
Browse files Browse the repository at this point in the history
Fix specification of disk by GUID, broken due to an incorrect pointer.

Reported-by: Szymon H <bodwick@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
  • Loading branch information
H. Peter Anvin committed Mar 14, 2011
1 parent c987272 commit cf4679d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions com32/modules/chain.c
@@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------- *
*
* Copyright 2003-2009 H. Peter Anvin - All Rights Reserved
* Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
* Copyright 2009-2011 Intel Corporation; author: H. Peter Anvin
* Significant portions copyright (C) 2010 Shao Miller
* [partition iteration, GPT, "fs"]
*
Expand Down Expand Up @@ -988,7 +988,7 @@ static int find_by_guid(const struct guid *gpt_guid,
#if DEBUG
gpt_dump(header);
#endif
is_me = !memcmp(&header->disk_guid, &gpt_guid, sizeof(*gpt_guid));
is_me = !memcmp(&header->disk_guid, gpt_guid, sizeof(*gpt_guid));
free(header);
if (!is_me) {
/* Check for a matching partition */
Expand Down

0 comments on commit cf4679d

Please sign in to comment.