]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Fix potential zero devisor
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Wed, 12 Nov 2014 02:36:11 +0000 (13:36 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 14 Nov 2014 06:24:25 +0000 (17:24 +1100)
commitebf916dbf8bb51e727b427b8e0e16a4fc57f4cc5
tree1507182116826675e204a2352ecee75bfa32dda7
parentc3afbe0f3742c1f06c62ed37a30ad39ee10412ac
powerpc/powernv: Fix potential zero devisor

If there're no PHBs under P5IOC2 HUB device tree node, we should
bail early to avoid zero devisor and allocating TCE tables.

Reported-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/pci-p5ioc2.c