summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGeoff Levand2006-10-05 20:35:16 +0200
committerPaul Mackerras2006-10-06 13:10:41 +0200
commitc1ce464d29e5bbf5819b2d7527b7d3030a6d65f1 (patch)
treebce7ed6d765c3cd7a75c4cbcccb25b62ed242966 /drivers
parent[POWERPC] Update MTFSF_L() comment (diff)
downloadkernel-qcow2-linux-c1ce464d29e5bbf5819b2d7527b7d3030a6d65f1.tar.gz
kernel-qcow2-linux-c1ce464d29e5bbf5819b2d7527b7d3030a6d65f1.tar.xz
kernel-qcow2-linux-c1ce464d29e5bbf5819b2d7527b7d3030a6d65f1.zip
[POWERPC] Minor fix for bootargs property
Avoid the use of an uninitialized stack variable when the powerpc device tree bootargs property is either missing or incorrectly defined. This also makes CONFIG_CMDLINE work properly under these conditions. This change adds a test for the existence of the bootargs property. early_init_dt_scan_chosen() tests for a zero length bootargs property in its CONFIG_CMDLINE processing, but the current implementation of of_get_flat_dt_prop() doesn't assign a value to the length when no property is found. Since an automatic variable is used, a stale value from the stack will be used in the test. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions