Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: qat - fix error return code in adf_probe

Fix to return a negative error code -EINVAL instead of 0.

Fixes: 0cec19c761e5 ("crypto: qat - add support for compression for 4xxx")
Signed-off-by: Wang Yufen <wangyufen@huawei.com>
Acked-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Wang Yufen and committed by
Herbert Xu
31f81401 83478938

+1
+1
drivers/crypto/qat/qat_4xxx/adf_drv.c
··· 261 261 hw_data->accel_capabilities_mask = hw_data->get_accel_cap(accel_dev); 262 262 if (!hw_data->accel_capabilities_mask) { 263 263 dev_err(&pdev->dev, "Failed to get capabilities mask.\n"); 264 + ret = -EINVAL; 264 265 goto out_err; 265 266 } 266 267