]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/ipmmu-vmsa: Fix return value check in ipmmu_find_group_dma()
authorweiyongjun (A) <weiyongjun1@huawei.com>
Tue, 17 Oct 2017 12:11:22 +0000 (12:11 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 6 Nov 2017 17:26:26 +0000 (10:26 -0700)
commit0aaf1f1739331310a3c7672cd45eabdc76354768
tree8e350aeaa7f8ab65082fb41aec6ff94f72bba7c7
parent8fe468de4fc9e8396980ba55d651cfb67226a3c1
iommu/ipmmu-vmsa: Fix return value check in ipmmu_find_group_dma()

In case of error, the function iommu_group_get() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check should be
replaced with NULL test.

Fixes: b4b77b5abea8 ("iommu/ipmmu-vmsa: Add new IOMMU_DOMAIN_DMA ops")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/iommu/ipmmu-vmsa.c