ieee802154: lowpan_header_create check must check daddr
authorWillem de Bruijn <willemb@google.com>
Sun, 23 Dec 2018 17:52:18 +0000 (12:52 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 24 Dec 2018 22:31:22 +0000 (14:31 -0800)
commit40c3ff6d5e0809505a067dd423c110c5658c478c
treeab4762f934800ee83e52461a8f5b490257b1eced
parent7bdca378b2301b1fc6a95c60d6d428408ae4e39e
ieee802154: lowpan_header_create check must check daddr

Packet sockets may call dev_header_parse with NULL daddr. Make
lowpan_header_ops.create fail.

Fixes: 87a93e4eceb4 ("ieee802154: change needed headroom/tailroom")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Acked-by: Alexander Aring <aring@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan/tx.c