summaryrefslogtreecommitdiff
path: root/arch/mips/Kbuild
diff options
context:
space:
mode:
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>2014-03-30 05:33:23 (GMT)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2014-04-09 02:53:15 (GMT)
commit6e556b471036b751aaa1a1b5a189eff76b1a2d0b (patch)
tree5bbd8d03d88a9986950961a0d60b7da9b7db3dff /arch/mips/Kbuild
parentfa5c11b790f9e18ec6f69680c4aa728157aef5f5 (diff)
downloadlinux-6e556b471036b751aaa1a1b5a189eff76b1a2d0b.tar.xz
powerpc/book3s: Fix mc_recoverable_range buffer overrun issue.
Currently we wrongly allocate mc_recoverable_range buffer (to hold recoverable ranges) based on size of the property "mcheck-recoverable-ranges". This results in allocating less memory to hold available recoverable range entries from /proc/device-tree/ibm,opal/mcheck-recoverable-ranges. This patch fixes this issue by allocating mc_recoverable_range buffer based on number of entries of recoverable ranges instead of device property size. Without this change we end up allocating less memory and run into memory corruption issue. Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/mips/Kbuild')
0 files changed, 0 insertions, 0 deletions