powerpc/powernv/pci: Use kmalloc_array() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 24 Aug 2016 20:26:37 +0000 (22:26 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Jan 2017 02:34:19 +0000 (13:34 +1100)
commitfb37e12896c1ba0407012fe8cdc0b054da063b6f
treef59b95b33731a48261e6e58ecb9708d219dac486
parent4ab2537c4204b976e4ca350bbdc193b4649cad28
powerpc/powernv/pci: Use kmalloc_array() in two functions

Use kmalloc_array(), which checks for overflow of the multiplication,
rather than doing it by hand.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-ioda.c