diff options
author | Breno Leitao | 2018-08-21 20:44:48 +0200 |
---|---|---|
committer | Michael Ellerman | 2018-09-19 13:58:09 +0200 |
commit | 984ecdd68de0fa1f63ce205d6c19ef5a7bc67b40 (patch) | |
tree | 4eb2bb5bf308d08eb4791b8cd5b34f4863019cb2 /tools/testing/selftests/powerpc | |
parent | powerpc/xive: Use xive_cpu->chip_id instead of looking it up again (diff) | |
download | kernel-qcow2-linux-984ecdd68de0fa1f63ce205d6c19ef5a7bc67b40.tar.gz kernel-qcow2-linux-984ecdd68de0fa1f63ce205d6c19ef5a7bc67b40.tar.xz kernel-qcow2-linux-984ecdd68de0fa1f63ce205d6c19ef5a7bc67b40.zip |
powerpc/iommu: Avoid derefence before pointer check
The tbl pointer is being derefenced by IOMMU_PAGE_SIZE prior the check
if it is not NULL.
Just moving the dereference code to after the check, where there will
be guarantee that 'tbl' will not be NULL.
Signed-off-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc')
0 files changed, 0 insertions, 0 deletions