projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ae2605
)
ieee802154: 6lowpan: add RTNL assertion
author
Alexander Aring
<alex.aring@gmail.com>
Mon, 13 Oct 2014 08:33:07 +0000
(10:33 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Sat, 25 Oct 2014 05:56:24 +0000
(07:56 +0200)
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>
net/ieee802154/6lowpan_rtnl.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ieee802154/6lowpan_rtnl.c
b/net/ieee802154/6lowpan_rtnl.c
index da78fae5b3013311f378b733300ace981068cdcf..0c1a49b51e57c11cd1d78efdbe89b089c7004ded 100644
(file)
--- 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])