summaryrefslogtreecommitdiff
path: root/kexec/arch/ppc/fs2dt.c
diff options
context:
space:
mode:
authorHari Bathini <hbathini@linux.vnet.ibm.com>2017-08-09 23:47:42 +0530
committerSimon Horman <horms@verge.net.au>2017-08-10 09:28:22 +0200
commit21eb397a5fc9227cd95d23e8c74a49cf6a293e57 (patch)
tree068cbf0a2ce63985810d4ce7b87306147be40f17 /kexec/arch/ppc/fs2dt.c
parent47478ea66d4301b12a07862aebc8447a2932f0ed (diff)
kexec-tools: powerpc: fix command line overflow error
Since kernel commit a5980d064fe2 ("powerpc: Bump COMMAND_LINE_SIZE to 2048"), powerpc bumped command line size to 2048 but the size used here is still the default value of 512. Bump it to 2048 to fix command line overflow errors observed when command line length is above 512 bytes. Also, get rid of the multiple definitions of COMMAND_LINE_SIZE macro in ppc architecture. Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/ppc/fs2dt.c')
-rw-r--r--kexec/arch/ppc/fs2dt.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/kexec/arch/ppc/fs2dt.c b/kexec/arch/ppc/fs2dt.c
index 6e77379..fed499b 100644
--- a/kexec/arch/ppc/fs2dt.c
+++ b/kexec/arch/ppc/fs2dt.c
@@ -37,7 +37,6 @@
#define TREEWORDS 65536 /* max 32 bit words for properties */
#define MEMRESERVE 256 /* max number of reserved memory blks */
#define MAX_MEMORY_RANGES 1024
-#define COMMAND_LINE_SIZE 512 /* from kernel */
static char pathname[MAXPATH];
static char propnames[NAMESPACE] = { 0 };