diff options
author | Johan Hovold <johan@hovoldconsulting.com> | 2015-07-17 18:50:25 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-07-20 16:14:29 -0700 |
commit | 1c7658cf5165586acff901b7e6ef27d8d5f2818d (patch) | |
tree | 07d3ac15cf34097446652e7edfea5a001bcf2898 /drivers/staging/greybus/control.c | |
parent | 93047af23c8389d1a63883dcb59cd8c2fd472b45 (diff) |
greybus: operation: fix atomic response allocation
Response allocation also needs a GFP-flags argument as a response is
allocated as part of an outgoing operation.
Fixes: 9aa174d202e5 ("operation: allow atomic operation allocations")
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/control.c')
-rw-r--r-- | drivers/staging/greybus/control.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/greybus/control.c b/drivers/staging/greybus/control.c index d7870fc83ed2..a69a703a1848 100644 --- a/drivers/staging/greybus/control.c +++ b/drivers/staging/greybus/control.c @@ -75,7 +75,8 @@ static int gb_control_request_recv(u8 type, struct gb_operation *op) // an AP. break; case GB_CONTROL_TYPE_PROTOCOL_VERSION: - if (!gb_operation_response_alloc(op, sizeof(*version))) { + if (!gb_operation_response_alloc(op, sizeof(*version), + GFP_KERNEL)) { dev_err(&connection->dev, "%s: error allocating response\n", __func__); return -ENOMEM; |