Commit ff65e20e authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: operation: drop OOM-response FIXME

Drop FIXME about sending responses in OOM situations.

If we fail to allocate an operation for an incoming request, we have
bigger problems than to worry about sending a response.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent aae5a44f
...@@ -828,7 +828,7 @@ static void gb_connection_recv_request(struct gb_connection *connection, ...@@ -828,7 +828,7 @@ static void gb_connection_recv_request(struct gb_connection *connection,
type, data, size); type, data, size);
if (!operation) { if (!operation) {
dev_err(&connection->dev, "can't create operation\n"); dev_err(&connection->dev, "can't create operation\n");
return; /* XXX Respond with pre-allocated ENOMEM */ return;
} }
ret = gb_operation_get_active(operation); ret = gb_operation_get_active(operation);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment