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:
parent
89f637f716
commit
287bba82fe
|
@ -382,7 +382,7 @@ static int gb_svc_intf_hotplug_recv(struct gb_operation *op)
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
svc_hotplug = kmalloc(sizeof(*svc_hotplug), GFP_ATOMIC);
|
||||
svc_hotplug = kmalloc(sizeof(*svc_hotplug), GFP_KERNEL);
|
||||
if (!svc_hotplug)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
Loading…
Reference in New Issue