net: caif: modify the label out_err to out
authorDongliang Mu <mudongliangabcd@gmail.com>
Fri, 18 Jun 2021 07:32:04 +0000 (15:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Jun 2021 19:07:09 +0000 (12:07 -0700)
Modify the label out_err to out to avoid the meanless kfree.

Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/caif/cfcnfg.c

index cac30e6..23267c8 100644 (file)
@@ -480,7 +480,7 @@ got_phyid:
        phyinfo = kzalloc(sizeof(struct cfcnfg_phyinfo), GFP_ATOMIC);
        if (!phyinfo) {
                res = -ENOMEM;
-               goto out_err;
+               goto out;
        }
 
        phy_layer->id = phyid;