[kernel, v2] powerpc/powernv: Check kzalloc() return value in pnv_pci_table_alloc
Michael Ellerman
patch-notifications at ellerman.id.au
Mon May 1 12:58:52 AEST 2017
On Mon, 2017-03-27 at 08:27:37 UTC, Alexey Kardashevskiy wrote:
> pnv_pci_table_alloc() ignores possible failure from kzalloc_node(),
> this adds a check. There are 2 callers of pnv_pci_table_alloc(),
> one already checks for tbl!=NULL, this adds WARN_ON() to the other path
> which only happens during boot time in IODA1 and not expected to fail.
>
> Signed-off-by: Alexey Kardashevskiy <aik at ozlabs.ru>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/82eae1afbbdcaf2d716f88025736dc
cheers
More information about the Linuxppc-dev
mailing list