Re: [PATCH] iommu: fix static checker warning in iommu_insert_device_resv_regions

2017-02-06 Thread Joerg Roedel
On Mon, Feb 06, 2017 at 10:11:38AM +0100, Eric Auger wrote: > In case the device reserved region list is void, the returned value > of iommu_insert_device_resv_regions is uninitialized. Let's return 0 > in that case. > > This fixes commit 6c65fb318e8b ("iommu: iommu_get_group_resv_regions"). > >

[PATCH] iommu: fix static checker warning in iommu_insert_device_resv_regions

2017-02-06 Thread Eric Auger
In case the device reserved region list is void, the returned value of iommu_insert_device_resv_regions is uninitialized. Let's return 0 in that case. This fixes commit 6c65fb318e8b ("iommu: iommu_get_group_resv_regions"). Reported-by: Dan Carpenter Signed-off-by: Eric Auger --- Applies on to