]> git.baikalelectronics.ru Git - kernel.git/commit
ionic: Fix an error code in ionic_lif_alloc()
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 21 Sep 2019 05:59:26 +0000 (08:59 +0300)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sun, 22 Sep 2019 21:16:15 +0000 (14:16 -0700)
commit8eb409f2109f6365fcadb90917a16b22e7116fa2
tree04594ccc8a23f91f2b55e9e405c946ec2d94f500
parent59e572842f39bf8381e0126cdab4553706cdaabf
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: d85b3d3f5c3d ("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>
drivers/net/ethernet/pensando/ionic/ionic_lif.c