diff options
author | Joao Martins <[email protected]> | 2020-09-10 18:16:21 +0100 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2020-09-18 10:35:11 +0200 |
commit | 14c4acc5ed22c21f9821103be7c48efdf9763584 (patch) | |
tree | 58c74f6390637a798e646b74191c7af59ea70878 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 856deb866d16e29bd65952e0289066f6078af773 (diff) |
iommu/amd: Fix potential @entry null deref
After commit 26e495f34107 ("iommu/amd: Restore IRTE.RemapEn bit after
programming IRTE"), smatch warns:
drivers/iommu/amd/iommu.c:3870 amd_iommu_deactivate_guest_mode()
warn: variable dereferenced before check 'entry' (see line 3867)
Fix this by moving the @valid assignment to after @entry has been checked
for NULL.
Fixes: 26e495f34107 ("iommu/amd: Restore IRTE.RemapEn bit after programming IRTE")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Joao Martins <[email protected]>
Reviewed-by: Suravee Suthikulpanit <[email protected]>
Cc: Suravee Suthikulpanit <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions