Datagram preallocation with ATOMIC flag, because it is calles in timer context.
This commit is contained in:
parent
589b1cc8db
commit
680c2146f2
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue