Commit 89f637f7 authored by Johan Hovold's avatar Johan Hovold

greybus: svc: fix device-id allocation flag

Use GFP_KERNEL for device-id allocation in svc_process_hotplug, which is
called from a work queue.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent c01c77ce
......@@ -304,7 +304,7 @@ static void svc_process_hotplug(struct work_struct *work)
* XXX about an AP with multiple interface blocks?
*/
device_id = ida_simple_get(&greybus_svc_device_id_map,
GB_DEVICE_ID_MODULES_START, 0, GFP_ATOMIC);
GB_DEVICE_ID_MODULES_START, 0, GFP_KERNEL);
if (device_id < 0) {
ret = device_id;
dev_err(dev, "%s: Failed to allocate device id for interface with id %hhu (%d)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment