]> asedeno.scripts.mit.edu Git - linux.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)
commit10c4bd7cd28e77aeb8cfa65b23cb3c632ede2a49
tree2d4ed2354a3984f1f308573b84190873aeb40109
parent31f210cf42d4b308eacef89b6cb0b1459338b8de
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