summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-opal.c
diff options
context:
space:
mode:
authorGavin Shan <gwshan@linux.vnet.ibm.com>2014-11-12 05:36:11 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2014-11-14 09:24:25 +0300
commitcf2b1e0eb0c281122b001cc879ca0118bff71255 (patch)
tree1507182116826675e204a2352ecee75bfa32dda7 /drivers/rtc/rtc-opal.c
parentec8e4e9d3d83b7a973477c2cb4831511b0eec06e (diff)
downloadlinux-cf2b1e0eb0c281122b001cc879ca0118bff71255.tar.xz
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>
Diffstat (limited to 'drivers/rtc/rtc-opal.c')
0 files changed, 0 insertions, 0 deletions