Commit 60f030f
iommu/vt-d: Avoid use of NULL after WARN_ON_ONCE
There is a WARN_ON_ONCE to catch an unlikely situation when
domain_remove_dev_pasid can't find the `pasid`. In case it nevertheless
happens we must avoid using a NULL pointer.
Signed-off-by: Kees Bakker <kees@ijzerbout.nl>
Link: https://lore.kernel.org/r/20241218201048.E544818E57E@bout3.ijzerbout.nl
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>1 parent 78d4f34 commit 60f030f
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4090 | 4090 | | |
4091 | 4091 | | |
4092 | 4092 | | |
4093 | | - | |
4094 | 4093 | | |
4095 | 4094 | | |
4096 | 4095 | | |
4097 | 4096 | | |
4098 | | - | |
4099 | | - | |
| 4097 | + | |
| 4098 | + | |
| 4099 | + | |
| 4100 | + | |
4100 | 4101 | | |
4101 | 4102 | | |
4102 | 4103 | | |
| |||
0 commit comments