mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-15 22:31:47 -04:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user