From: Alexander Aring Date: Mon, 13 Oct 2014 08:33:07 +0000 (+0200) Subject: ieee802154: 6lowpan: add RTNL assertion X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=c37a8106de1b8d286fe577599ccc9bbb0efdd7ad;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.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])