powerpc/powernv/npu: Allocate enough memory in pnv_try_setup_npu_table_group()

Michael Ellerman patch-notifications at ellerman.id.au
Mon Jan 14 21:12:07 AEDT 2019


On Wed, 2019-01-09 at 10:23:29 UTC, Dan Carpenter wrote:
> 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 at oracle.com>
> Reviewed-by: Alexey Kardashevskiy <aik at ozlabs.ru>
> Acked-by: Balbir Singh <bsingharora at gmail.com>

Applied to powerpc fixes, thanks.

https://git.kernel.org/powerpc/c/d7b6cc199b2dea602b4a2a681cf6d322

cheers


More information about the Linuxppc-dev mailing list