]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: malta: memory.c: Initialize the 'memsize' variable
authorMarkos Chandras <markos.chandras@imgtec.com>
Fri, 23 May 2014 12:31:31 +0000 (13:31 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Sun, 25 May 2014 10:46:24 +0000 (12:46 +0200)
commitc348eea48022563a7aecfa0ae3fdc10c77a9649d
tree114b3a946e0cdff2c0273990ecb28e2a12477824
parent2d7f0b4a824b2b8f10453de613dac02e558709b6
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: <stable@vger.kernel.org> # v3.15+
Reported-by: Matheus Almeida <Matheus.Almeida@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: Markos Chandras <markos.chandras@imgtec.com>
Cc: stable@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/6984/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/mti-malta/malta-memory.c