mac802154: use goto label on failure
Signed-off-by: Varka Bhadram <varkab@cdac.in> Reviewed-by: Stefan Schmidt <s.schmidt@samsung.com> Acked-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
This commit is contained in:
Родитель
da25cf6a98
Коммит
bcb47aabf4
|
@ -85,8 +85,7 @@ ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata,
|
||||||
default:
|
default:
|
||||||
spin_unlock_bh(&sdata->mib_lock);
|
spin_unlock_bh(&sdata->mib_lock);
|
||||||
pr_debug("invalid dest mode\n");
|
pr_debug("invalid dest mode\n");
|
||||||
kfree_skb(skb);
|
goto fail;
|
||||||
return NET_RX_DROP;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
spin_unlock_bh(&sdata->mib_lock);
|
spin_unlock_bh(&sdata->mib_lock);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче