]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
wan/fsl_ucc_hdlc: remove reduplicative freed memory 'uhdlc_priv'
authorZhao Qiang <qiang.zhao@nxp.com>
Fri, 15 Jul 2016 02:38:24 +0000 (10:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 17 Jul 2016 03:22:02 +0000 (20:22 -0700)
'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>
drivers/net/wan/fsl_ucc_hdlc.c

index 6edd48afc248230d08a504fcd33dc56750ca1f40..040a45c4b4c124a028553bebc48a3bcb1342d488 100644 (file)
@@ -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: