From: Johan Hovold Date: Tue, 13 Oct 2015 17:10:22 +0000 (+0200) Subject: greybus: operation: drop OOM-response FIXME X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ff65e20ee534a5720bacd0b4058458e234ec51d6;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c index fae6ee9071df..969309e5d4d1 100644 --- a/drivers/staging/greybus/operation.c +++ b/drivers/staging/greybus/operation.c @@ -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);