Commit bcb47aab authored by Varka Bhadram's avatar Varka Bhadram Committed by Marcel Holtmann

mac802154: use goto label on failure

Signed-off-by: default avatarVarka Bhadram <varkab@cdac.in>
Reviewed-by: default avatarStefan Schmidt <s.schmidt@samsung.com>
Acked-by: default avatarAlexander Aring <alex.aring@gmail.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment