summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorZhao Qiang <qiang.zhao@nxp.com>2016-07-15 10:38:24 +0800
committerDavid S. Miller <davem@davemloft.net>2016-07-16 20:22:02 -0700
commit18210510cfe418b374e364654743f738ddb75196 (patch)
tree56308fd1f3c9cd24d76d7803fb4e07d343de5f5e /drivers/net/wan
parent43b9e127406079d187794a5140a2411fbc6df2df (diff)
downloadop-kernel-dev-18210510cfe418b374e364654743f738ddb75196.zip
op-kernel-dev-18210510cfe418b374e364654743f738ddb75196.tar.gz
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@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/fsl_ucc_hdlc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/wan/fsl_ucc_hdlc.c b/drivers/net/wan/fsl_ucc_hdlc.c
index 6edd48a..040a45c 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:
OpenPOWER on IntegriCloud