[U-Boot] [PATCH v1] DOS_PBR block type is also valid dos block type.

sonic.adi at gmail.com sonic.adi at gmail.com
Mon Mar 11 10:56:08 CET 2013


From: Sonic Zhang <sonic.zhang at 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 at 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




More information about the U-Boot mailing list