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: aa3198819b
("ionic: Add RSS support")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
alistair/sunxi64-5.4-dsi
parent
ff04cfbaa2
commit
73a63ee995
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue