diff options
author | David S. Miller <davem@davemloft.net> | 2018-12-24 16:19:56 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-24 16:19:56 -0800 |
commit | 90cadbbf341dd5b2df991c33a6bd6341f3a53788 (patch) | |
tree | 306a7e88725865b7310fa5b0962336f98a8214fe /net/ieee802154 | |
parent | c92c81df93df95dafbf6926613ce0b436227b007 (diff) | |
parent | 38355a5f9a22bfa5bd5b1bb79805aca39fa53729 (diff) | |
download | lwn-90cadbbf341dd5b2df991c33a6bd6341f3a53788.tar.gz lwn-90cadbbf341dd5b2df991c33a6bd6341f3a53788.zip |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Pull in bug fixes before respinning my net-next pull
request.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ieee802154')
-rw-r--r-- | net/ieee802154/6lowpan/tx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/ieee802154/6lowpan/tx.c b/net/ieee802154/6lowpan/tx.c index ca53efa17be1..8bec827081cd 100644 --- a/net/ieee802154/6lowpan/tx.c +++ b/net/ieee802154/6lowpan/tx.c @@ -48,6 +48,9 @@ int lowpan_header_create(struct sk_buff *skb, struct net_device *ldev, const struct ipv6hdr *hdr = ipv6_hdr(skb); struct neighbour *n; + if (!daddr) + return -EINVAL; + /* TODO: * if this package isn't ipv6 one, where should it be routed? */ |