From: Zhao Qiang Date: Fri, 15 Jul 2016 02:38:24 +0000 (+0800) Subject: wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv' X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=18210510cfe418b374e364654743f738ddb75196;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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: