projects
/
openwrt
/
staging
/
zorun.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d210025
)
generic-2.6: make MyLoader parser compatible with the old partition tables
author
Gabor Juhos
<
[email protected]
>
Fri, 23 Jan 2009 11:54:44 +0000
(11:54 +0000)
committer
Gabor Juhos
<
[email protected]
>
Fri, 23 Jan 2009 11:54:44 +0000
(11:54 +0000)
SVN-Revision: 14155
target/linux/generic-2.6/files/drivers/mtd/myloader.c
patch
|
blob
|
history
diff --git
a/target/linux/generic-2.6/files/drivers/mtd/myloader.c
b/target/linux/generic-2.6/files/drivers/mtd/myloader.c
index 60ebe22056ce1020c53925300c93a68d3adb163a..51c037459ff9b6965ced16f244197bcddedf8f24 100644
(file)
--- a/
target/linux/generic-2.6/files/drivers/mtd/myloader.c
+++ b/
target/linux/generic-2.6/files/drivers/mtd/myloader.c
@@
-2,7
+2,7
@@
* Parse MyLoader-style flash partition tables and produce a Linux partition
* array to match.
*
- * Copyright (C) 2007-200
8
Gabor Juhos <
[email protected]
>
+ * Copyright (C) 2007-200
9
Gabor Juhos <
[email protected]
>
*
* This file was based on drivers/mtd/redboot.c
* Author: Red Hat, Inc. - David Woodhouse <
[email protected]
>
@@
-133,7
+133,7
@@
int myloader_parse_partitions(struct mtd_info *master,
if (le16_to_cpu(part->type) == PARTITION_TYPE_FREE)
continue;
- if (
buf->names[i][0]
)
+ if (
(buf->names[i][0]) && (buf->names[i][0] != '\xff')
)
strncpy(names, buf->names[i], PART_NAME_LEN);
else
snprintf(names, PART_NAME_LEN, "partition%d", i);