Thread (2 messages) flat view 2 messages, 2 authors, 2018-09-20

Re: powerpc/iommu: avoid derefence before pointer check

From: Michael Ellerman <hidden>
Date: 2018-09-20 04:21:00

On Tue, 2018-08-21 at 18:44:48 UTC, Breno Leitao wrote:
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.

CC: Alistair Popple <redacted>
Signed-off-by: Breno Leitao <leitao@debian.org>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/984ecdd68de0fa1f63ce205d6c19ef

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help