Commit 287bba82 authored by Johan Hovold's avatar Johan Hovold

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: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 89f637f7
...@@ -382,7 +382,7 @@ static int gb_svc_intf_hotplug_recv(struct gb_operation *op) ...@@ -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;
......
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