]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
greybus: svc: fix hot-plug-state allocation flag
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 1 Sep 2015 10:25:26 +0000 (12:25 +0200)
committerJohan Hovold <johan@hovoldconsulting.com>
Wed, 2 Sep 2015 08:47:42 +0000 (10:47 +0200)
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>
drivers/staging/greybus/svc.c

index 029b5a7d15604df08f10a71e6dbb937fe7a5a93f..db009223d7595f9a26a3ee3427e29e068b713074 100644 (file)
@@ -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;