]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: qat - do not ignore errors from enable_vf2pf_comms()
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>
Thu, 12 Aug 2021 20:21:13 +0000 (21:21 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Aug 2021 07:44:54 +0000 (15:44 +0800)
commit5147f0906d50a9d26f2b8698cd06b5680e9867ff
tree81445435dc61359bcc45959822135b9ba98420c7
parenta48afd6c7a4ee908f0e3c5691bd1a8e74f8e5d16
crypto: qat - do not ignore errors from enable_vf2pf_comms()

The function adf_dev_init() ignores the error code reported by
enable_vf2pf_comms(). If the latter fails, e.g. the VF is not compatible
with the pf, then the load of the VF driver progresses.
This patch changes adf_dev_init() so that the error code from
enable_vf2pf_comms() is returned to the caller.

Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Marco Chiappero <marco.chiappero@intel.com>
Reviewed-by: Fiona Trahe <fiona.trahe@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_init.c