From: Alexander Aring Date: Mon, 13 Oct 2014 08:33:07 +0000 (+0200) Subject: ieee802154: 6lowpan: add RTNL assertion X-Git-Tag: v3.19-rc1~118^2~234^2~3^2~114 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c37a8106de1b8d286fe577599ccc9bbb0efdd7ad;p=karo-tx-linux.git ieee802154: 6lowpan: add RTNL assertion This patch ensure that the rtnl lock is hold while newlink callback. Signed-off-by: Alexander Aring Signed-off-by: Marcel Holtmann --- 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])