# HG changeset patch # User Florian Pose # Date 1168266273 0 # Node ID 3e5989834735b19ce650580601a8c446dc5ca18a # Parent d91976aea8c89a42a71bbef9f9130e8945fba0e7 Datagram preallocation with ATOMIC flag, because it is calles in timer context. diff -r d91976aea8c8 -r 3e5989834735 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; }