commit | 83476bfaf6ac1cebf0cc5a3bdcf5031ef875cf42 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Wed Dec 20 03:06:09 2017 +0000 |
committer | Thierry Reding <treding@nvidia.com> | Wed Dec 20 18:32:08 2017 +0100 |
tree | c88d555e200ff98ead65e814d201c4acf6d2213b | |
parent | 7f4c9176f760f4006af9f0863403f977a0bb3c52 [diff] |
iommu/tegra-smmu: Fix return value check in tegra_smmu_group_get() In case of error, the function iommu_group_alloc() returns ERR_PTR() and never returns NULL. The NULL test in the return value check should be replaced with IS_ERR(). Fixes: 7f4c9176f760 ("iommu/tegra: Allow devices to be grouped") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Thierry Reding <treding@nvidia.com>