summaryrefslogtreecommitdiffstats
path: root/net/ieee802154
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-10-13 10:33:07 +0200
committerMarcel Holtmann <marcel@holtmann.org>2014-10-25 07:56:24 +0200
commitc37a8106de1b8d286fe577599ccc9bbb0efdd7ad (patch)
treeb2120ab946a651152e535c3c0a62154d7c890645 /net/ieee802154
parent1ae2605e55c6ef640238fb2e03d044119acd9a37 (diff)
downloadlinux-c37a8106de1b8d286fe577599ccc9bbb0efdd7ad.tar.gz
linux-c37a8106de1b8d286fe577599ccc9bbb0efdd7ad.tar.bz2
linux-c37a8106de1b8d286fe577599ccc9bbb0efdd7ad.zip
ieee802154: 6lowpan: add RTNL assertion
This patch ensure that the rtnl lock is hold while newlink callback. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/ieee802154')
-rw-r--r--net/ieee802154/6lowpan_rtnl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ieee802154/6lowpan_rtnl.c b/net/ieee802154/6lowpan_rtnl.c
index da78fae5b301..0c1a49b51e57 100644
--- a/net/ieee802154/6lowpan_rtnl.c
+++ b/net/ieee802154/6lowpan_rtnl.c
@@ -584,6 +584,8 @@ static int lowpan_newlink(struct net *src_net, struct net_device *dev,
struct lowpan_dev_record *entry;
int ret;
+ ASSERT_RTNL();
+
pr_debug("adding new link\n");
if (!tb[IFLA_LINK])