From 18210510cfe418b374e364654743f738ddb75196 Mon Sep 17 00:00:00 2001 From: Zhao Qiang Date: Fri, 15 Jul 2016 10:38:24 +0800 Subject: [PATCH] wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv' 'uhdlc_priv' has freed twice, drop the first one. Signed-off-by: Zhao Qiang Signed-off-by: David S. Miller --- 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 6edd48afc248..040a45c4b4c1 100644 --- a/drivers/net/wan/fsl_ucc_hdlc.c +++ b/drivers/net/wan/fsl_ucc_hdlc.c @@ -1126,7 +1126,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.20.1