[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <1468550305-38571-1-git-send-email-qiang.zhao@nxp.com>
Date: Fri, 15 Jul 2016 10:38:24 +0800
From: Zhao Qiang <qiang.zhao@....com>
To: <davem@...emloft.net>, <dan.carpenter@...cle.com>
CC: <netdev@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<xiaobo.xie@....com>, Zhao Qiang <qiang.zhao@....com>
Subject: [PATCH 1/2] wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv'
'uhdlc_priv' has freed twice, drop the first one.
Signed-off-by: Zhao Qiang <qiang.zhao@....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
Powered by blists - more mailing lists