crypto: keembay-ocs-ecc - Fix error return code in kmb_ocs_ecc_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 1 Nov 2021 14:02:33 +0000 (14:02 +0000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 20 Nov 2021 04:02:08 +0000 (15:02 +1100)
commit94ad2d19a97efdb603a21fcad0625f466f1cdd0f
tree07c1b3ae0404cfc1d4cd13a3e020e1a7c424dabf
parentefd21e10fc3bf4c6da122470a5ae89ec4ed8d180
crypto: keembay-ocs-ecc - Fix error return code in kmb_ocs_ecc_probe()

Fix to return negative error code -ENOMEM from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: c9f608c38009 ("crypto: keembay-ocs-ecc - Add Keem Bay OCS ECC Driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/keembay/keembay-ocs-ecc.c