Skip to content
Snippets Groups Projects
Commit 73a63ee9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski
Browse files

ionic: Fix an error code in ionic_lif_alloc()


We need to set the error code on this path.  Otherwise it probably
results in a NULL dereference down the line.

Fixes: aa319881 ("ionic: Add RSS support")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarShannon Nelson <snelson@pensando.io>
Signed-off-by: default avatarJakub Kicinski <jakub.kicinski@netronome.com>
parent ff04cfba
No related branches found
No related tags found
No related merge requests found
......@@ -1704,6 +1704,7 @@ static struct ionic_lif *ionic_lif_alloc(struct ionic *ionic, unsigned int index
GFP_KERNEL);
if (!lif->rss_ind_tbl) {
err = -ENOMEM;
dev_err(dev, "Failed to allocate rss indirection table, aborting\n");
goto err_out_free_qcqs;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment