]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/perf: fix imc allocation failure handling
authorNicholas Piggin <npiggin@gmail.com>
Wed, 24 Jul 2019 08:46:36 +0000 (18:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Aug 2019 11:22:20 +0000 (21:22 +1000)
commite61b95fdc3232db948c9ed133d77e1beafffa3f7
tree2d4ed2354a3984f1f308573b84190873aeb40109
parent4930c98a9c537f015e01bb92164386da157ed215
powerpc/perf: fix imc allocation failure handling

The alloc_pages_node return value should be tested for failure
before being passed to page_address.

Tested-by: Anju T Sudhakar <anju@linux.vnet.ibm.com>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190724084638.24982-3-npiggin@gmail.com
arch/powerpc/perf/imc-pmu.c