summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorWill Deacon <will@kernel.org>2020-01-15 15:21:47 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-28 15:39:04 +0100
commite3295cded4e8327dc8b254d65349956572d367d7 (patch)
tree6e317d2984a3e3ad98c6ed8ddbeaba5aafcecaf3 /include/linux
parentafd459796f6bd2db8bfeac39eb8a2b7c955a2b63 (diff)
iommu/arm-smmu-v3: Use WRITE_ONCE() when changing validity of an STE
[ Upstream commit d71e01716b3606a6648df7e5646ae12c75babde4 ] If, for some bizarre reason, the compiler decided to split up the write of STE DWORD 0, we could end up making a partial structure valid. Although this probably won't happen, follow the example of the context-descriptor code and use WRITE_ONCE() to ensure atomicity of the write. Reported-by: Jean-Philippe Brucker <jean-philippe@linaro.org> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions