Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/verbs: Always return vrb_prov in VERBS_INI
Previously NULL was returned if vrb_os_ini() failed. This mainly affected Windows because the function would always succeed on Linux. On Windows, the function would fail if the ND driver failed to initialize. Returning NULL from VEBRS_INI prevents fi_getinfo() from working as expecetd when the FI_PROV_ATTR_ONLY flags is used. This patch moves the vrb_os_ini() check to vrb_init_info() which is invoked when fi_getinfo() is called the first time. Signed-off-by: Jianxin Xiong <jianxin.xiong@intel.com>
- Loading branch information