greybus: svc: fix hot-plug-state allocation flag

Use GFP_KERNEL for hot-plug state allocation in
gb_svc_intf_hotplug_recv, which is called from a request handler (i.e.
a work queue).

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
Johan Hovold 2015-09-01 12:25:26 +02:00
parent 89f637f716
commit 287bba82fe
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ static int gb_svc_intf_hotplug_recv(struct gb_operation *op)
return -EINVAL; return -EINVAL;
} }
svc_hotplug = kmalloc(sizeof(*svc_hotplug), GFP_ATOMIC); svc_hotplug = kmalloc(sizeof(*svc_hotplug), GFP_KERNEL);
if (!svc_hotplug) if (!svc_hotplug)
return -ENOMEM; return -ENOMEM;