Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274180
b: refs/heads/master
c: 78b782c
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Sep 20, 2011
1 parent 5d56e85 commit e5340d3
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 55190f88789ab62a42c3ee050090406b0bcefff8
refs/heads/master: 78b782cb788cadbda151ecb61753c109602a250c
7 changes: 6 additions & 1 deletion trunk/drivers/of/fdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -681,9 +681,14 @@ int __init early_init_dt_scan_chosen(unsigned long node, const char *uname,
if (p != NULL && l > 0)
strlcpy(data, p, min((int)l, COMMAND_LINE_SIZE));

/*
* CONFIG_CMDLINE is meant to be a default in case nothing else
* managed to set the command line, unless CONFIG_CMDLINE_FORCE
* is set in which case we override whatever was found earlier.
*/
#ifdef CONFIG_CMDLINE
#ifndef CONFIG_CMDLINE_FORCE
if (p == NULL || l == 0 || (l == 1 && (*p) == 0))
if (!((char *)data)[0])
#endif
strlcpy(data, CONFIG_CMDLINE, COMMAND_LINE_SIZE);
#endif /* CONFIG_CMDLINE */
Expand Down

0 comments on commit e5340d3

Please sign in to comment.