From: Markos Chandras Date: Fri, 23 May 2014 12:31:31 +0000 (+0100) Subject: MIPS: malta: memory.c: Initialize the 'memsize' variable X-Git-Tag: omap-for-v3.16/fixes-against-rc1~115^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ff89d64f23e99da64995844ea42c83b0b4d58c6;p=pandora-kernel.git MIPS: malta: memory.c: Initialize the 'memsize' variable If the 'memsize' environmental variable is not set by the bootloader the 'memsize' variable is not initialized, leading to potential memory problems. This patch fixes the problem by setting the initial value to '0' to force the kernel to set a good default memory size. Cc: # v3.15+ Reported-by: Matheus Almeida Signed-off-by: Markos Chandras Cc: linux-mips@linux-mips.org Cc: Markos Chandras Cc: stable@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/6984/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed