提交 bcb47aab 编写于 作者: V Varka Bhadram 提交者: Marcel Holtmann

mac802154: use goto label on failure

Signed-off-by: NVarka Bhadram <varkab@cdac.in>
Reviewed-by: NStefan Schmidt <s.schmidt@samsung.com>
Acked-by: NAlexander Aring <alex.aring@gmail.com>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 da25cf6a
......@@ -85,8 +85,7 @@ ieee802154_subif_frame(struct ieee802154_sub_if_data *sdata,
default:
spin_unlock_bh(&sdata->mib_lock);
pr_debug("invalid dest mode\n");
kfree_skb(skb);
return NET_RX_DROP;
goto fail;
}
spin_unlock_bh(&sdata->mib_lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册