Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ieee802154: mac802154: handle the reserved dest mode by dropping the 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>

authored by

Martin Townsend and committed by
Marcel Holtmann
6e361d6f c4cb901a

+4 -1
+4 -1
net/mac802154/wpan.c
··· 462 462 skb->pkt_type = PACKET_OTHERHOST; 463 463 break; 464 464 default: 465 - break; 465 + spin_unlock_bh(&sdata->mib_lock); 466 + pr_debug("invalid dest mode\n"); 467 + kfree_skb(skb); 468 + return NET_RX_DROP; 466 469 } 467 470 468 471 spin_unlock_bh(&sdata->mib_lock);