From: sonic.adi at gmail.com <sonic.adi@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1] DOS_PBR block type is also valid dos block type.
Date: Mon, 11 Mar 2013 17:56:08 +0800 [thread overview]
Message-ID: <1362995768-30954-1-git-send-email-sonic.adi@gmail.com> (raw)
From: Sonic Zhang <sonic.zhang@analog.com>
- Should return 0 for both DOS_MBR and DOS_PBR block types in test_part_dos().
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
---
disk/part_dos.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/disk/part_dos.c b/disk/part_dos.c
index 3fe901b..98f82ca 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -98,7 +98,7 @@ int test_part_dos (block_dev_desc_t *dev_desc)
if (dev_desc->block_read(dev_desc->dev, 0, 1, (ulong *) buffer) != 1)
return -1;
- if (test_block_type(buffer) != DOS_MBR)
+ if (test_block_type(buffer) < 0)
return -1;
return 0;
--
1.7.0.4
next reply other threads:[~2013-03-11 9:56 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-11 9:56 sonic.adi at gmail.com [this message]
2013-03-11 17:28 ` [U-Boot] [PATCH v1] DOS_PBR block type is also valid dos block type Stephen Warren
2013-03-12 2:59 ` Sonic Zhang
2013-03-13 17:11 ` Stephen Warren
2013-03-14 2:51 ` Sonic Zhang
2013-03-14 4:36 ` Stephen Warren
2013-03-14 7:31 ` Sonic Zhang
2013-03-14 17:53 ` Stephen Warren
2013-03-15 5:10 ` Stephen Warren
2013-03-15 6:36 ` Sonic Zhang
2013-03-15 13:14 ` Tom Rini
2013-03-15 17:09 ` Stephen Warren
2013-03-15 17:29 ` Tom Rini
2013-03-15 12:46 ` Tom Rini
2013-03-15 17:07 ` Stephen Warren
[not found] ` <CAJxxZ0Pk2CtS0FuYJyZDqq3NyUZEnCjnjsksx7buv8RiLf+3vQ@mail.gmail.com>
[not found] ` <513E9C79.2000708@wwwdotorg.org>
2013-03-13 2:58 ` Sonic Zhang
2013-03-13 16:51 ` Stephen Warren
2013-03-13 17:01 ` Stephen Warren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1362995768-30954-1-git-send-email-sonic.adi@gmail.com \
--to=sonic.adi@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox