“55be517ae3f125eec7b5f3e145566411acc6370c”上不存在“test/sun/misc/git@gitcode.net:openanolis/dragonwell8_jdk.git”
提交 40c3ff6d 编写于 作者: W Willem de Bruijn 提交者: David S. Miller

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: 87a93e4e ("ieee802154: change needed headroom/tailroom")
Signed-off-by: NWillem de Bruijn <willemb@google.com>
Acked-by: NAlexander Aring <aring@mojatatu.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 7bdca378
...@@ -48,6 +48,9 @@ int lowpan_header_create(struct sk_buff *skb, struct net_device *ldev, ...@@ -48,6 +48,9 @@ int lowpan_header_create(struct sk_buff *skb, struct net_device *ldev,
const struct ipv6hdr *hdr = ipv6_hdr(skb); const struct ipv6hdr *hdr = ipv6_hdr(skb);
struct neighbour *n; struct neighbour *n;
if (!daddr)
return -EINVAL;
/* TODO: /* TODO:
* if this package isn't ipv6 one, where should it be routed? * if this package isn't ipv6 one, where should it be routed?
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册