|
@@ -490,6 +490,15 @@ handle_req:
|
|
if (backlog)
|
|
if (backlog)
|
|
backlog->complete(backlog, -EINPROGRESS);
|
|
backlog->complete(backlog, -EINPROGRESS);
|
|
|
|
|
|
|
|
+ /* In case the send() helper did not issue any command to push
|
|
|
|
+ * to the engine because the input data was cached, continue to
|
|
|
|
+ * dequeue other requests as this is valid and not an error.
|
|
|
|
+ */
|
|
|
|
+ if (!commands && !results) {
|
|
|
|
+ kfree(request);
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
|
|
+
|
|
spin_lock_bh(&priv->ring[ring].egress_lock);
|
|
spin_lock_bh(&priv->ring[ring].egress_lock);
|
|
list_add_tail(&request->list, &priv->ring[ring].list);
|
|
list_add_tail(&request->list, &priv->ring[ring].list);
|
|
spin_unlock_bh(&priv->ring[ring].egress_lock);
|
|
spin_unlock_bh(&priv->ring[ring].egress_lock);
|