aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorZhao Qiang <qiang.zhao@nxp.com>2016-07-14 22:38:24 -0400
committerDavid S. Miller <davem@davemloft.net>2016-07-16 23:22:02 -0400
commit18210510cfe418b374e364654743f738ddb75196 (patch)
tree56308fd1f3c9cd24d76d7803fb4e07d343de5f5e /drivers/net/wan
parent43b9e127406079d187794a5140a2411fbc6df2df (diff)
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 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)
1126 1126
1127err_hdlc_init: 1127err_hdlc_init:
1128err_miss_tsa_property: 1128err_miss_tsa_property:
1129 kfree(uhdlc_priv);
1130 if (uhdlc_priv->tsa) 1129 if (uhdlc_priv->tsa)
1131 kfree(utdm); 1130 kfree(utdm);
1132err_alloc_utdm: 1131err_alloc_utdm: