Merge "haven: hh_msgq: Use GFP_ATOMIC allocations in hh_msgq_alloc_entry()"

This commit is contained in:
qctecmdr 2021-12-27 16:41:35 -08:00 • committed by Gerrit - the friendly Code Review server
commit cfad8c4755

View file

@ -561,14 +561,14 @@ static int __init hh_msgq_init(void)
spin_lock_init(&cap_table_entry->rx_lock);
spin_lock_init(&cap_table_entry->cap_entry_lock);
cap_table_entry->tx_irq_name = kasprintf(GFP_KERNEL,
cap_table_entry->tx_irq_name = kasprintf(GFP_ATOMIC,
"hh_msgq_tx_%d", i);
if (!cap_table_entry->tx_irq_name) {
ret = -ENOMEM;
goto err;
}
cap_table_entry->rx_irq_name = kasprintf(GFP_KERNEL,
cap_table_entry->rx_irq_name = kasprintf(GFP_ATOMIC,
"hh_msgq_rx_%d", i);
if (!cap_table_entry->rx_irq_name) {
ret = -ENOMEM;