mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-02 16:44:10 +08:00
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>
This commit is contained in:
parent
ff04cfbaa2
commit
73a63ee995
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user