Commit c01c77ce authored by Johan Hovold's avatar Johan Hovold

greybus: endo: fix endo-id allocation flag

Use GFP_KERNEL for endo ida allocation in gb_endo_register, which is not
called from atomic context.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent 2d465d57
...@@ -439,7 +439,7 @@ static int gb_endo_register(struct greybus_host_device *hd, ...@@ -439,7 +439,7 @@ static int gb_endo_register(struct greybus_host_device *hd,
{ {
int retval; int retval;
retval = ida_simple_get(&greybus_endo_id_map, 0, 0, GFP_ATOMIC); retval = ida_simple_get(&greybus_endo_id_map, 0, 0, GFP_KERNEL);
if (retval < 0) if (retval < 0)
return retval; return retval;
......
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