Loading
crypto: qat - add NULL pointer check
mainline inclusion from mainline-v6.8-rc1 commit a643212c9f28d09225c3792c316bc4aaf6be4a68 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I9A5BW CVE: N/A Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a643212c9f28d09225c3792c316bc4aaf6be4a68 ------------------------------------- There is a possibility that the function adf_devmgr_pci_to_accel_dev() might return a NULL pointer. Add a NULL pointer check in the function rp2srv_show(). Intel-SIG: commit a643212c9f28 crypto: qat - add NULL pointer check Backport to support QAT in-tree driver Fixes: dbc8876dd873 ("crypto: qat - add rp2svc sysfs attribute") Signed-off-by:Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by:
Ahsan Atta <ahsan.atta@intel.com> Reviewed-by:
David Guckian <david.guckian@intel.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au> [ Aichun Shi: amend commit log ] Signed-off-by:
Aichun Shi <aichun.shi@intel.com>