Skip to content

Commit

Permalink
ieee802154: mac802154: handle the reserved dest mode by dropping the …
Browse files Browse the repository at this point in the history
…packet

If received frame contains the reserved destination address mode. The
frame should be dropped and free the skb.

Signed-off-by: Martin Townsend <martin.townsend@xsilon.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Martin Townsend authored and Marcel Holtmann committed Aug 19, 2014
1 parent c4cb901 commit 6e361d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/mac802154/wpan.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,10 @@ mac802154_subif_frame(struct mac802154_sub_if_data *sdata, struct sk_buff *skb,
skb->pkt_type = PACKET_OTHERHOST;
break;
default:
break;
spin_unlock_bh(&sdata->mib_lock);
pr_debug("invalid dest mode\n");
kfree_skb(skb);
return NET_RX_DROP;
}

spin_unlock_bh(&sdata->mib_lock);
Expand Down

0 comments on commit 6e361d6

Please sign in to comment.