Datagram preallocation with ATOMIC flag, because it is calles in timer context.
authorFlorian Pose <fp@igh-essen.com>
Mon, 08 Jan 2007 14:24:33 +0000
changeset 514 3e5989834735
parent 513 d91976aea8c8
child 515 37aa1bfa0dee
Datagram preallocation with ATOMIC flag, because it is calles in timer context.
master/datagram.c
--- a/master/datagram.c	Mon Jan 08 08:36:57 2007 +0000
+++ b/master/datagram.c	Mon Jan 08 14:24:33 2007 +0000
@@ -115,7 +115,7 @@
         datagram->mem_size = 0;
     }
 
-    if (!(datagram->data = kmalloc(size, GFP_KERNEL))) {
+    if (!(datagram->data = kmalloc(size, GFP_ATOMIC))) {
         EC_ERR("Failed to allocate %i bytes of datagram memory!\n", size);
         return -1;
     }