* iommu/exynos: Checking a device_link_add() call in exynos_iommu_add_device()
@ 2019-10-18 6:30 Markus Elfring
0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2019-10-18 6:30 UTC (permalink / raw)
To: iommu, linux-arm-kernel, linux-samsung-soc, Jörg Rödel,
Krzysztof Kozlowski, Kukjin Kim, Marek Szyprowski
Cc: Rafael J. Wysocki, kernel-janitors, Stephen McCamant, Kangjie Lu,
LKML, Navid Emamdoost, Aditya Pakki
Hello,
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”.
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/iommu/exynos-iommu.c?id=0e2adab6cf285c41e825b6c74a3aa61324d1132c#n1253
https://elixir.bootlin.com/linux/v5.4-rc2/source/drivers/iommu/exynos-iommu.c#L1253
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?
Regards,
Markus
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-10-18 6:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-18 6:30 iommu/exynos: Checking a device_link_add() call in exynos_iommu_add_device() Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).