projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55cc051
)
netpoll: warn on netpoll_send_udp users who haven't disabled irqs
author
Nikolay Aleksandrov
<nikolay@cumulusnetworks.com>
Fri, 28 Aug 2015 22:44:25 +0000
(15:44 -0700)
committer
David S. Miller
<davem@davemloft.net>
Fri, 28 Aug 2015 23:24:54 +0000
(16:24 -0700)
Make sure we catch future netpoll_send_udp users who use it without
disabling irqs and also as a hint for poll_controller users.
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c
patch
|
blob
|
blame
|
history
diff --git
a/net/core/netpoll.c
b/net/core/netpoll.c
index c126a878c47c95587cd4713ee500ec0e9577af39..6aa3db8dfc3b5512577b60f9bf85439c726f85b8 100644
(file)
--- a/
net/core/netpoll.c
+++ b/
net/core/netpoll.c
@@
-380,6
+380,8
@@
void netpoll_send_udp(struct netpoll *np, const char *msg, int len)
static atomic_t ip_ident;
struct ipv6hdr *ip6h;
+ WARN_ON_ONCE(!irqs_disabled());
+
udp_len = len + sizeof(*udph);
if (np->ipv6)
ip_len = udp_len + sizeof(*ip6h);