net: caif: modify the label out_err to out
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>
This commit is contained in:
parent
9d72b8da9f
commit
9fd2bc3206
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user