OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d465d5
)
greybus: endo: fix endo-id allocation flag
author
Johan Hovold
<johan@hovoldconsulting.com>
Tue, 1 Sep 2015 10:25:24 +0000
(12:25 +0200)
committer
Johan Hovold
<johan@hovoldconsulting.com>
Wed, 2 Sep 2015 08:47:06 +0000
(10:47 +0200)
Use GFP_KERNEL for endo ida allocation in gb_endo_register, which is not
called from atomic context.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/staging/greybus/endo.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/endo.c
b/drivers/staging/greybus/endo.c
index
baa4aa5
..
84d695d
100644
(file)
--- 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;