1
0
Fork 0

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: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
hifive-unleashed-5.1
Johan Hovold 2015-10-13 19:10:22 +02:00 committed by Greg Kroah-Hartman
parent aae5a44ff5
commit ff65e20ee5
1 changed files with 1 additions and 1 deletions

View File

@ -828,7 +828,7 @@ static void gb_connection_recv_request(struct gb_connection *connection,
type, data, size);
if (!operation) {
dev_err(&connection->dev, "can't create operation\n");
return; /* XXX Respond with pre-allocated ENOMEM */
return;
}
ret = gb_operation_get_active(operation);