diff options
| author | 2020-01-15 15:21:47 +0000 | |
|---|---|---|
| committer | 2020-01-15 16:30:27 +0000 | |
| commit | d71e01716b3606a6648df7e5646ae12c75babde4 (patch) | |
| tree | 6c36ad589a8008d4dd1dcca5570b4ef081a60c8a /lib/mpi | |
| parent | iommu/arm-smmu-v3: Add second level of context descriptor table (diff) | |
| download | linux-dev-d71e01716b3606a6648df7e5646ae12c75babde4.tar.xz linux-dev-d71e01716b3606a6648df7e5646ae12c75babde4.zip | |
iommu/arm-smmu-v3: Use WRITE_ONCE() when changing validity of an STE
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>
Diffstat (limited to 'lib/mpi')
0 files changed, 0 insertions, 0 deletions
