iommu/exynos: Checking a device_link_add() call in exynos_iommu_add_device()

From: Markus Elfring
Date: Fri Oct 18 2019 - 02:31:32 EST


I tried another script for the semantic patch language out.
This source code analysis approach points out that the implementation
of the function âexynos_iommu_add_deviceâ contains still
an unchecked call of the function âdevice_link_addâ.

How do you think about to improve it?

* Which error code would you like to return for a failed
device link addition at this place?

* Will it be needed to delete any links as exception handling?