diff --git a/net/qrtr/ns.c b/net/qrtr/ns.c index ce1eca947cc9..defd50d1d66e 100644 --- a/net/qrtr/ns.c +++ b/net/qrtr/ns.c @@ -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; }