public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
* [PATCH RESEND] ARM: pxa: ssp: remove kfree for memory allocated with devm_kzalloc
@ 2013-09-24  3:35 Wei Yongjun
  2013-09-24  8:54 ` Daniel Mack
  0 siblings, 1 reply; 3+ messages in thread
From: Wei Yongjun @ 2013-09-24  3:35 UTC (permalink / raw)
  To: linux-arm-kernel

From: Wei Yongjun <yongjun_wei@trendmicro•com.cn>

It's not necessary to free memory allocated with devm_kzalloc
and using kfree leads to a double free.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro•com.cn>
---
Correct Mark's mail address
---
 arch/arm/plat-pxa/ssp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
index 3ea0290..528143e 100644
--- a/arch/arm/plat-pxa/ssp.c
+++ b/arch/arm/plat-pxa/ssp.c
@@ -250,7 +250,6 @@ static int pxa_ssp_remove(struct platform_device *pdev)
 	list_del(&ssp->node);
 	mutex_unlock(&ssp_lock);
 
-	kfree(ssp);
 	return 0;
 }
 

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

end of thread, other threads:[~2013-09-27  2:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-24  3:35 [PATCH RESEND] ARM: pxa: ssp: remove kfree for memory allocated with devm_kzalloc Wei Yongjun
2013-09-24  8:54 ` Daniel Mack
2013-09-27  2:15   ` Chao Xie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox