summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-04-26 15:54:36 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-04-26 15:54:36 +0200
commitfa93d9e7302bad1efd8ce9f97b4d58177aa7241a (patch)
tree946bcdab028fd070ae8ffa52377f9eb0d6a4f609
parentc4172cf85db0eceb0b3dd74a59076d1a52857ff5 (diff)
downloadmodquicktun-fa93d9e7302bad1efd8ce9f97b4d58177aa7241a.tar
modquicktun-fa93d9e7302bad1efd8ce9f97b4d58177aa7241a.zip
Allocate memory atomically in quicktun_udp_data_ready()
-rw-r--r--quicktun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quicktun.c b/quicktun.c
index c44b2f1..3f52762 100644
--- a/quicktun.c
+++ b/quicktun.c
@@ -203,7 +203,7 @@ static void quicktun_udp_data_ready(struct sock *sk, int bytes)
rcu_read_unlock();
if (ACCESS_ONCE(tun->flags) & QUICKTUN_FLAG_REMOTE_FLOAT) {
- struct addr_struct *addr = kmalloc(sizeof(struct addr_struct), GFP_KERNEL);
+ struct addr_struct *addr = kmalloc(sizeof(struct addr_struct), GFP_ATOMIC);
if (!addr)
goto drop;