mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-08-18 17:17:23 +08:00
Datagram preallocation with ATOMIC flag, because it is calles in timer context.
This commit is contained in:
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user