mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fs:partitions:efi.c: correct misuse force_gpt
@ 2011-11-22  0:44 wangyanqing
  2011-11-22  0:56 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: wangyanqing @ 2011-11-22  0:44 UTC (permalink / raw)
  To: akpm; +Cc: warns, linux-kernel, tj, jaxboe

The primary gpt header maybe broken, so we should
check the alternate gpt header no matter whether
there is a gpt boot parameter.(The alternate gpt header
is for this way).

Signed-off-by: Wang YanQing <udknight@gmail.com>
---
 fs/partitions/efi.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/partitions/efi.c b/fs/partitions/efi.c
index 6296b40..53fd92f 100644
--- a/fs/partitions/efi.c
+++ b/fs/partitions/efi.c
@@ -553,7 +553,7 @@ static int find_valid_gpt(struct parsed_partitions *state, gpt_header **gpt,
 		good_agpt = is_gpt_valid(state,
 					 le64_to_cpu(pgpt->alternate_lba),
 					 &agpt, &aptes);
-        if (!good_agpt && force_gpt)
+        if (!good_agpt)
                 good_agpt = is_gpt_valid(state, lastlba, &agpt, &aptes);
 
         /* The obviously unsuccessful case */
-- 
1.7.3.4


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-22  5:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-22  0:44 [PATCH] fs:partitions:efi.c: correct misuse force_gpt wangyanqing
2011-11-22  0:56 ` Andrew Morton
     [not found]   ` <20111122043325.GA4979@emperor.us.dell.com>
2011-11-22  5:33     ` wangyanqing

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®