From 287bba82fe2f74dd89f7f24f2da438a7974e57af Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 1 Sep 2015 12:25:26 +0200 Subject: [PATCH] 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 Reviewed-by: Viresh Kumar --- drivers/staging/greybus/svc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/svc.c b/drivers/staging/greybus/svc.c index 029b5a7..db00922 100644 --- a/drivers/staging/greybus/svc.c +++ b/drivers/staging/greybus/svc.c @@ -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; -- 2.7.4