Re: [patch] iommu/vt-d: returning free pointer in get_domain_for_dev()

2014-03-28 Thread David Woodhouse
On Fri, 2014-03-28 at 11:29 +0300, Dan Carpenter wrote: > If we hit this error condition then we want to return a NULL pointer and > not a freed variable. > > Signed-off-by: Dan Carpenter > > diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c > index 6fbce01..69fa7da 100644 >

[patch] iommu/vt-d: returning free pointer in get_domain_for_dev()

2014-03-28 Thread Dan Carpenter
If we hit this error condition then we want to return a NULL pointer and not a freed variable. Signed-off-by: Dan Carpenter diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c index 6fbce01..69fa7da 100644 --- a/drivers/iommu/intel-iommu.c +++ b/drivers/iommu/intel-iommu.c @@