From: Johan Hovold Date: Tue, 1 Sep 2015 10:25:25 +0000 (+0200) Subject: greybus: svc: fix device-id allocation flag X-Git-Tag: v5.15~12752^2~378^2~21^2~1250 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=89f637f716a90ec9da7a26d53ad883ea2b806e66;p=platform%2Fkernel%2Flinux-starfive.git 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: Johan Hovold Reviewed-by: Viresh Kumar --- diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index 452f81b..029b5a7 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -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",