Datagram preallocation with ATOMIC flag, because it is calles in timer context.

This commit is contained in:
Florian Pose 2007-01-08 14:24:33 +00:00
parent 589b1cc8db
commit 680c2146f2
1 changed files with 1 additions and 1 deletions

View File

@ -115,7 +115,7 @@ int ec_datagram_prealloc(ec_datagram_t *datagram, /**< EtherCAT datagram */
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;
}