OSDN Git Service

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)
commit73a63ee9955494e18a6f7d9ba396f5e78e3ce307
tree04594ccc8a23f91f2b55e9e405c946ec2d94f500
parentff04cfbaa23644562f369eeca0b44ef66e185c9e
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: aa3198819bea ("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