powerpc/powernv/npu: Allocate enough memory in pnv_try_setup_npu_table_group()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Jan 2019 10:23:29 +0000 (13:23 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 11 Jan 2019 12:44:54 +0000 (23:44 +1100)
commitd7b6cc199b2dea602b4a2a681cf6d3223a61e2be
tree4bbee1c161cfa67e241ab8d5fe7918e7c3d98653
parent6529870cb0323823f49b3e95d1760383910f96cd
powerpc/powernv/npu: Allocate enough memory in pnv_try_setup_npu_table_group()

There is a typo so we accidentally allocate enough memory for a pointer
when we wanted to allocate enough for a struct.

Fixes: 0bd971676e68 ("powerpc/powernv/npu: Add compound IOMMU groups")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/npu-dma.c