]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/npu: Check mmio_atsd array bounds when populating
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 19 Dec 2018 08:52:28 +0000 (19:52 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 05:20:46 +0000 (16:20 +1100)
commit833a59321e0607aab928a3f0eac62dd65b6c6fd6
tree0769b1280ba5f1d5cf301d1f408127d1ed0e67e9
parent0412cd4c12599d331fa4e90cab8ec46052313b80
powerpc/powernv/npu: Check mmio_atsd array bounds when populating

A broken device tree might contain more than 8 values and introduce hard
to debug memory corruption bug. This adds the boundary check.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/npu-dma.c