* [PATCH] iommu/vt-d: return error code in domain_context_mapping_one()
@ 2016-07-13 13:53 Wei Yang
2016-07-14 8:27 ` Joerg Roedel
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yang @ 2016-07-13 13:53 UTC (permalink / raw)
To: jroedel, dwmw2; +Cc: joro, iommu, linux-kernel, Wei Yang
In 'commit <55d940430ab9> ("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 <richard.weiyang@gmail.com>
---
drivers/iommu/intel-iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 323dac9..d416242 100644
--- a/drivers/iommu/intel-iommu.c
+++ b/drivers/iommu/intel-iommu.c
@@ -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 {
--
1.7.9.5
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH] iommu/vt-d: return error code in domain_context_mapping_one()
2016-07-13 13:53 [PATCH] iommu/vt-d: return error code in domain_context_mapping_one() Wei Yang
@ 2016-07-14 8:27 ` Joerg Roedel
0 siblings, 0 replies; 2+ messages in thread
From: Joerg Roedel @ 2016-07-14 8:27 UTC (permalink / raw)
To: Wei Yang; +Cc: dwmw2, joro, iommu, linux-kernel
On Wed, Jul 13, 2016 at 01:53:21PM +0000, Wei Yang wrote:
> In 'commit <55d940430ab9> ("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 <richard.weiyang@gmail.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-14 8:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-13 13:53 [PATCH] iommu/vt-d: return error code in domain_context_mapping_one() Wei Yang
2016-07-14 8:27 ` Joerg Roedel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome