Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 32763
b: refs/heads/master
c: f7785a6
h: refs/heads/master
i:
  32761: dc4fd95
  32759: 12ed7ca
v: v3
  • Loading branch information
Bob Breuer authored and David S. Miller committed Jul 21, 2006
1 parent 30cdd89 commit d52e8dc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bda2f7b4801964351253706d1a87e4d2110829a5
refs/heads/master: f7785a64d117951e4c2bf9418d8c1dd59fe53b36
9 changes: 6 additions & 3 deletions trunk/arch/sparc/kernel/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,7 @@ static struct property * __init build_one_prop(phandle node, char *prev, char *s
static struct property *tmp = NULL;
struct property *p;
int len;
const char *name;

if (tmp) {
p = tmp;
Expand All @@ -456,19 +457,21 @@ static struct property * __init build_one_prop(phandle node, char *prev, char *s

p->name = (char *) (p + 1);
if (special_name) {
strcpy(p->name, special_name);
p->length = special_len;
p->value = prom_early_alloc(special_len);
memcpy(p->value, special_val, special_len);
} else {
if (prev == NULL) {
prom_firstprop(node, p->name);
name = prom_firstprop(node, NULL);
} else {
prom_nextprop(node, prev, p->name);
name = prom_nextprop(node, prev, NULL);
}
if (strlen(p->name) == 0) {
if (strlen(name) == 0) {
tmp = p;
return NULL;
}
strcpy(p->name, name);
p->length = prom_getproplen(node, p->name);
if (p->length <= 0) {
p->length = 0;
Expand Down

0 comments on commit d52e8dc

Please sign in to comment.