Commit 73a63ee9 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski

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
...@@ -1704,6 +1704,7 @@ static struct ionic_lif *ionic_lif_alloc(struct ionic *ionic, unsigned int index ...@@ -1704,6 +1704,7 @@ static struct ionic_lif *ionic_lif_alloc(struct ionic *ionic, unsigned int index
GFP_KERNEL); GFP_KERNEL);
if (!lif->rss_ind_tbl) { if (!lif->rss_ind_tbl) {
err = -ENOMEM;
dev_err(dev, "Failed to allocate rss indirection table, aborting\n"); dev_err(dev, "Failed to allocate rss indirection table, aborting\n");
goto err_out_free_qcqs; goto err_out_free_qcqs;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment