> -----Original Message----- > From: Intel-wired-lan <intel-wired-lan-bounces@xxxxxxxxxx> On Behalf Of > Wei Yongjun > Sent: Thursday, June 18, 2020 7:20 AM > To: Kirsher, Jeffrey T <jeffrey.t.kirsher@xxxxxxxxx>; Jakub Kicinski > <kuba@xxxxxxxxxx> > Cc: intel-wired-lan@xxxxxxxxxxxxxxxx; kernel-janitors@xxxxxxxxxxxxxxx; Wei > Yongjun <weiyongjun1@xxxxxxxxxx>; netdev@xxxxxxxxxxxxxxx > Subject: [Intel-wired-lan] [PATCH] iavf: fix error return code in > iavf_init_get_resources() > > Fix to return negative error code -ENOMEM from the error handling case > instead of 0, as done elsewhere in this function. > > Fixes: b66c7bc1cd4d ("iavf: Refactor init state machine") > Signed-off-by: Wei Yongjun <weiyongjun1@xxxxxxxxxx> > --- > drivers/net/ethernet/intel/iavf/iavf_main.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Tested-by: Andrew Bowers <andrewx.bowers@xxxxxxxxx>