]> git.baikalelectronics.ru Git - kernel.git/commit
iavf: fix error return code in iavf_init_get_resources()
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 18 Jun 2020 14:19:53 +0000 (14:19 +0000)
committerTony Nguyen <anthony.l.nguyen@intel.com>
Wed, 1 Jul 2020 21:18:54 +0000 (14:18 -0700)
commit70acab789f9de21b7688b81b51f7214d375a1901
tree0cc3908fdce17650b2a3f6fda991ac7c303437ce
parenta255965d6679e813d8326819f49f5c5dd151ccb0
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: a3baea31739b ("iavf: Refactor init state machine")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
drivers/net/ethernet/intel/iavf/iavf_main.c