projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[kernel] gpio_buttons: include slab.h
[openwrt.git]
/
target
/
linux
/
generic-2.6
/
files
/
drivers
/
mtd
/
myloader.c
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
60ebe22
..
51c0374
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.
*
* Parse MyLoader-style flash partition tables and produce a Linux partition
* array to match.
*
- * Copyright (C) 2007-200
8
Gabor Juhos <juhosg@openwrt.org>
+ * Copyright (C) 2007-200
9
Gabor Juhos <juhosg@openwrt.org>
*
* This file was based on drivers/mtd/redboot.c
* Author: Red Hat, Inc. - David Woodhouse <dwmw2@cambridge.redhat.com>
*
* This file was based on drivers/mtd/redboot.c
* Author: Red Hat, Inc. - David Woodhouse <dwmw2@cambridge.redhat.com>
@@
-133,7
+133,7
@@
int myloader_parse_partitions(struct mtd_info *master,
if (le16_to_cpu(part->type) == PARTITION_TYPE_FREE)
continue;
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);
strncpy(names, buf->names[i], PART_NAME_LEN);
else
snprintf(names, PART_NAME_LEN, "partition%d", i);
This page took
0.024006 seconds
and
4
git commands to generate.