Skip to content

Commit

Permalink
modules/mqnic: Abort if scheduler allocation failed
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Forencich <[email protected]>
  • Loading branch information
alexforencich committed Mar 12, 2024
1 parent c19221b commit 1ac71de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/mqnic/mqnic_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ int mqnic_start_port(struct net_device *ndev)

// allocate scheduler port
priv->sched_port = mqnic_interface_alloc_sched_port(iface);
if (!priv->sched_port) {
ret = -ENOMEM;
goto fail;
}

// set up RX queues
for (k = 0; k < priv->rxq_count; k++) {
Expand Down

0 comments on commit 1ac71de

Please sign in to comment.