Commit 68ec78b
iommu/vt-d: Avoid use of NULL after WARN_ON_ONCE
[ Upstream commit 60f030f ]
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lu Baolu <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Signed-off-by: Amelia Crate <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>1 parent 1e9ad8e commit 68ec78b
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4328 | 4328 | | |
4329 | 4329 | | |
4330 | 4330 | | |
4331 | | - | |
4332 | 4331 | | |
4333 | 4332 | | |
4334 | 4333 | | |
4335 | 4334 | | |
4336 | | - | |
4337 | | - | |
| 4335 | + | |
| 4336 | + | |
| 4337 | + | |
| 4338 | + | |
4338 | 4339 | | |
4339 | 4340 | | |
4340 | 4341 | | |
| |||
0 commit comments