net: qrtr: Allow isr context to get service details

Allow isr context to get service details.

Change-Id: I782a2c80883252ce614a0a05df6d4fc1a1304b32
Signed-off-by: Arun Prakash <app@codeaurora.org>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
This commit is contained in:
Chris Lew 2022-10-27 11:08:48 -07:00
parent e2b39c0d6e
commit 0079417ad7

View File

@ -87,14 +87,14 @@ static struct qrtr_node *node_get(unsigned int node_id)
return node;
/* If node didn't exist, allocate and insert it to the tree */
node = kzalloc(sizeof(*node), GFP_KERNEL);
node = kzalloc(sizeof(*node), GFP_ATOMIC);
if (!node)
return NULL;
node->id = node_id;
xa_init(&node->servers);
xa_store(&nodes, node_id, node, GFP_KERNEL);
xa_store(&nodes, node_id, node, GFP_ATOMIC);
return node;
}