mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
iommu/vt-d: Return error code in domain_context_mapping_one()
In 'commit <55d940430a> ("iommu/vt-d: Get rid of domain->iommu_lock")', the error handling path is changed a little, which makes the function always return 0. This path fixes this. Signed-off-by: Wei Yang <[email protected]> Fixes:55d940430a('iommu/vt-d: Get rid of domain->iommu_lock') Cc: [email protected] # v4.3+ Signed-off-by: Joerg Roedel <[email protected]>
This commit is contained in:
parent
452014d2b4
commit
5c365d18a7
1 changed files with 1 additions and 1 deletions
|
|
@ -2076,7 +2076,7 @@ out_unlock:
|
|||
spin_unlock(&iommu->lock);
|
||||
spin_unlock_irqrestore(&device_domain_lock, flags);
|
||||
|
||||
return 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
struct domain_context_mapping_data {
|
||||
|
|
|
|||
Loading…
Reference in a new issue