diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-26 15:54:36 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-04-26 15:54:36 +0200 |
commit | fa93d9e7302bad1efd8ce9f97b4d58177aa7241a (patch) | |
tree | 946bcdab028fd070ae8ffa52377f9eb0d6a4f609 | |
parent | c4172cf85db0eceb0b3dd74a59076d1a52857ff5 (diff) | |
download | modquicktun-fa93d9e7302bad1efd8ce9f97b4d58177aa7241a.tar modquicktun-fa93d9e7302bad1efd8ce9f97b4d58177aa7241a.zip |
Allocate memory atomically in quicktun_udp_data_ready()
-rw-r--r-- | quicktun.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |