Loading
crypto: hisilicon/qm - adjust the internal processing sequence of the vf enable and disable
driver inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I9NUTY CVE: NA ---------------------------------------------------------------------- When the virtual function is enabled, the value of vfs_num must be assigned after the VF configuration is complete. Otherwise, the device may be accessed before the virtual configuration is complete, causing an error. When the QM is disabled, clear vfs_num and execute qm_pm_put_sync before hisi_qm_sriov_disable is return. Otherwise, if qm_clear_vft_config fails, users may access the device when the PCI virtualization is disabled, resulting in an error. Fixes: 263c9959 ("crypto: hisilicon - add queue management driver for HiSilicon QM module") Signed-off-by:Chenghai Huang <huangchenghai2@huawei.com> Signed-off-by:
JiangShui Yang <yangjiangshui@h-partners.com>