Skip to content

Commit

Permalink
wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv'
Browse files Browse the repository at this point in the history
'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>
  • Loading branch information
Zhao Qiang authored and David S. Miller committed Jul 17, 2016
1 parent 43b9e12 commit 1821051
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/net/wan/fsl_ucc_hdlc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 1821051

Please sign in to comment.