From: Johan Hovold Date: Tue, 1 Sep 2015 10:25:24 +0000 (+0200) Subject: greybus: endo: fix endo-id allocation flag X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c01c77ce4b2a7a39134d90f90ab964926ef88123;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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: Johan Hovold Reviewed-by: Viresh Kumar --- diff --git a/drivers/staging/greybus/endo.c b/drivers/staging/greybus/endo.c index baa4aa581096..84d695df2d62 100644 --- a/drivers/staging/greybus/endo.c +++ b/drivers/staging/greybus/endo.c @@ -439,7 +439,7 @@ static int gb_endo_register(struct greybus_host_device *hd, { 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) return retval;