projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f345a5
)
greybus: connection: fix non-atomic allocations under spin lock
author
Johan Hovold
<johan@hovoldconsulting.com>
Thu, 12 Feb 2015 03:22:47 +0000
(11:22 +0800)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Thu, 12 Feb 2015 03:42:26 +0000
(11:42 +0800)
Use GFP_ATOMIC for IDA memory allocations under spin lock, which must
not sleep.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/connection.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/connection.c
b/drivers/staging/greybus/connection.c
index c805022c50bcbf6867b33664c09ee45f35b55147..5f60e83aa37c2a3e86946dee6b1bcc02e8dc2726 100644
(file)
--- a/
drivers/staging/greybus/connection.c
+++ b/
drivers/staging/greybus/connection.c
@@
-63,7
+63,7
@@
static bool gb_connection_hd_cport_id_alloc(struct gb_connection *connection)
int id;
spin_lock_irq(&gb_connections_lock);
- id = ida_simple_get(ida, 0, HOST_DEV_CPORT_ID_MAX, GFP_
KERNEL
);
+ id = ida_simple_get(ida, 0, HOST_DEV_CPORT_ID_MAX, GFP_
ATOMIC
);
spin_unlock_irq(&gb_connections_lock);
if (id < 0)
return false;