• Alexander Aring's avatar
    mac802154: fix mac header length check · 07b0188a
    Alexander Aring authored
    I got report about that sometimes the WARN_ON occurs there which should
    never happen. I came to the conclusion that the mac header is there but
    inside the headroom of skb. The skb->len information doesn't contain the
    information about the headroom length and skb->len is lesser than two.
    
    We check now if the skb_mac_header pointer is set and the room between
    mac header pointer and tail pointer.
    Signed-off-by: default avatarAlexander Aring <aar@pengutronix.de>
    Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
    07b0188a
mac802154.h 12.2 KB