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:
c600e53
)
greybus: operation: suppress response submission on connection tear down
author
Johan Hovold
<johan@hovoldconsulting.com>
Tue, 14 Jul 2015 13:43:29 +0000
(15:43 +0200)
committer
Greg Kroah-Hartman
<gregkh@google.com>
Wed, 15 Jul 2015 19:39:13 +0000
(12:39 -0700)
Suppress response submission on connection tear down as we do with
requests.
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/operation.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/operation.c
b/drivers/staging/greybus/operation.c
index 0adb72773d8abaec1ff7c4254303aa7da63cd46f..2729b486d68decb7e25db6956a5489fad0ddb629 100644
(file)
--- a/
drivers/staging/greybus/operation.c
+++ b/
drivers/staging/greybus/operation.c
@@
-705,6
+705,9
@@
static int gb_operation_response_send(struct gb_operation *operation,
struct gb_connection *connection = operation->connection;
int ret;
+ if (connection->state != GB_CONNECTION_STATE_ENABLED)
+ return -ENOTCONN;
+
if (!operation->response &&
!gb_operation_is_unidirectional(operation)) {
if (!gb_operation_response_alloc(operation, 0))