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: b66c7bc1 ("iavf: Refactor init state machine") Signed-off-by: NWei Yongjun <weiyongjun1@huawei.com> Tested-by: NAndrew Bowers <andrewx.bowers@intel.com> Signed-off-by: NTony Nguyen <anthony.l.nguyen@intel.com>
Showing
想要评论请 注册 或 登录