Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 659
b: refs/heads/master
c: c4005e4
h: refs/heads/master
i:
  657: d4bc28e
  655: fe3aed1
v: v3
  • Loading branch information
Anton Blanchard authored and Linus Torvalds committed May 1, 2005
1 parent 10af2d1 commit ef98856
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 4b88e927e8c38f4053680a3098325142017a37f0
refs/heads/master: c4005e4f661a9ec8d91720a6b570865d060afcaf
8 changes: 7 additions & 1 deletion trunk/arch/ppc64/kernel/prom_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1555,6 +1555,12 @@ static void __init scan_dt_build_strings(phandle node, unsigned long *mem_start,
}
}

/*
* The Open Firmware 1275 specification states properties must be 31 bytes or
* less, however not all firmwares obey this. Make it 64 bytes to be safe.
*/
#define MAX_PROPERTY_NAME 64

static void __init scan_dt_build_struct(phandle node, unsigned long *mem_start,
unsigned long *mem_end)
{
Expand All @@ -1564,7 +1570,7 @@ static void __init scan_dt_build_struct(phandle node, unsigned long *mem_start,
unsigned long soff;
unsigned char *valp;
unsigned long offset = reloc_offset();
char pname[32];
char pname[MAX_PROPERTY_NAME];
char *path;

path = RELOC(prom_scratch);
Expand Down

0 comments on commit ef98856

Please sign in to comment.