All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu: fsl_pamu: Replace use of kzfree with kfree_sensitive
@ 2020-09-11 13:53 ` Alex Dewar
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Dewar @ 2020-09-11 13:53 UTC (permalink / raw)
  Cc: Alex Dewar, Joerg Roedel, iommu, linux-kernel

kzfree() is effectively deprecated as of commit 453431a54934 ("mm,
treewide: rename kzfree() to kfree_sensitive()") and is now simply an
alias for kfree_sensitive(). So just replace it with kfree_sensitive().

Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
---
 drivers/iommu/fsl_pamu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c
index 099a11a35fb9..b9a974d97831 100644
--- a/drivers/iommu/fsl_pamu.c
+++ b/drivers/iommu/fsl_pamu.c
@@ -1174,7 +1174,7 @@ static int fsl_pamu_probe(struct platform_device *pdev)
 	if (irq != NO_IRQ)
 		free_irq(irq, data);
 
-	kzfree(data);
+	kfree_sensitive(data);
 
 	if (pamu_regs)
 		iounmap(pamu_regs);
-- 
2.28.0


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-09-18  8:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-11 13:53 [PATCH] iommu: fsl_pamu: Replace use of kzfree with kfree_sensitive Alex Dewar
2020-09-11 13:53 ` Alex Dewar
2020-09-18  8:59 ` Joerg Roedel
2020-09-18  8:59   ` Joerg Roedel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.