linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv'
@ 2016-07-15  2:38 Zhao Qiang
  2016-07-15  2:38 ` [PATCH 2/2] wan/fsl_ucc_hdlc: rewrite error handling to make it clearer Zhao Qiang
  2016-07-17  3:22 ` [PATCH 1/2] wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv' David Miller
  0 siblings, 2 replies; 4+ messages in thread
From: Zhao Qiang @ 2016-07-15  2:38 UTC (permalink / raw)
  To: davem, dan.carpenter; +Cc: netdev, linux-kernel, xiaobo.xie, Zhao Qiang

'uhdlc_priv' has freed twice, drop the first one.

Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
---
 drivers/net/wan/fsl_ucc_hdlc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c
index 19174ac..e2b225d 100644
--- a/drivers/net/wan/fsl_ucc_hdlc.c
+++ b/drivers/net/wan/fsl_ucc_hdlc.c
@@ -1127,7 +1127,6 @@ static int ucc_hdlc_probe(struct platform_device *pdev)
 
 err_hdlc_init:
 err_miss_tsa_property:
-	kfree(uhdlc_priv);
 	if (uhdlc_priv->tsa)
 		kfree(utdm);
 err_alloc_utdm:
-- 
2.1.0.27.g96db324

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

end of thread, other threads:[~2016-07-17  3:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-15  2:38 [PATCH 1/2] wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv' Zhao Qiang
2016-07-15  2:38 ` [PATCH 2/2] wan/fsl_ucc_hdlc: rewrite error handling to make it clearer Zhao Qiang
2016-07-17  3:22   ` David Miller
2016-07-17  3:22 ` [PATCH 1/2] wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv' David Miller

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).