From: Christophe JAILLET Date: Sat, 25 May 2024 15:14:35 +0000 (+0200) Subject: crypto: tegra - Remove an incorrect iommu_fwspec_free() call in tegra_se_remove() X-Git-Tag: v6.11-rc1~119^2~67 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d7c52cb4184d3dc26dde62b4f5acd48de0768ae;p=thirdparty%2Fkernel%2Flinux.git crypto: tegra - Remove an incorrect iommu_fwspec_free() call in tegra_se_remove() The only iommu function call in this driver is a tegra_dev_iommu_get_stream_id() which does not allocate anything and does not take any reference. So there is no point in calling iommu_fwspec_free() in the remove function. Remove this incorrect function call. Fixes: 0880bb3b00c8 ("crypto: tegra - Add Tegra Security Engine driver") Signed-off-by: Christophe JAILLET Tested-by: Akhil R Acked-by: Akhil R Signed-off-by: Herbert Xu --- diff --git a/drivers/crypto/tegra/tegra-se-main.c b/drivers/crypto/tegra/tegra-se-main.c index 9955874b3dc37..f94c0331b148c 100644 --- a/drivers/crypto/tegra/tegra-se-main.c +++ b/drivers/crypto/tegra/tegra-se-main.c @@ -326,7 +326,6 @@ static void tegra_se_remove(struct platform_device *pdev) crypto_engine_stop(se->engine); crypto_engine_exit(se->engine); - iommu_fwspec_free(se->dev); host1x_client_unregister(&se->client); }