Commit 3f13f72
iommu/vt-d: Remove two WARN_ON in domain_context_mapping_one()
Remove the WARN_ON(did == 0) as the domain id 0 is reserved and
set once the domain_ids is allocated. So iommu_init_domains will
never return 0.
Remove the WARN_ON(!table) as this pointer will be accessed in
the following code, if empty "table" really happens, the kernel
will report a NULL pointer reference warning at the first place.
Signed-off-by: Yanfei Xu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lu Baolu <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>1 parent a0e9911 commit 3f13f72
1 file changed
+0
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1897 | 1897 | | |
1898 | 1898 | | |
1899 | 1899 | | |
1900 | | - | |
1901 | | - | |
1902 | 1900 | | |
1903 | 1901 | | |
1904 | 1902 | | |
| |||
1944 | 1942 | | |
1945 | 1943 | | |
1946 | 1944 | | |
1947 | | - | |
1948 | | - | |
1949 | 1945 | | |
1950 | 1946 | | |
1951 | 1947 | | |
| |||
0 commit comments