Commit 18210510 authored by Zhao Qiang's avatar Zhao Qiang Committed by David S. Miller

wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv'

'uhdlc_priv' has freed twice, drop the first one.
Signed-off-by: default avatarZhao Qiang <qiang.zhao@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 43b9e127
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment