commit | 3faa1d3b2350239a6292fb8e7379f80b5af70ee4 | [log] [tgz] |
---|---|---|
author | Breno Leitao <leitao@debian.org> | Tue Aug 21 15:44:48 2018 -0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon Nov 25 09:52:28 2019 +0100 |
tree | 1a45ac963051dc649d05b99f65531783cd18a67d | |
parent | be9a5ecdd40ea505af3631e4c85e20af8afcb4bb [diff] |
powerpc/iommu: Avoid derefence before pointer check [ Upstream commit 984ecdd68de0fa1f63ce205d6c19ef5a7bc67b40 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>