diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2020-08-02 14:15:32 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-29 11:07:01 +0300 |
commit | bf65f0c0cafb40c41ca37bdaab6e3b36ecbbd934 (patch) | |
tree | 49b5750a0a5d44be7957cf99a30856d87636f07c /drivers/crypto/ixp4xx_crypto.c | |
parent | 9751cc18971d1c3e1103a823b5324cb8312058a4 (diff) | |
download | linux-bf65f0c0cafb40c41ca37bdaab6e3b36ecbbd934.tar.xz |
crypto: mediatek - Fix wrong return value in mtk_desc_ring_alloc()
[ Upstream commit 8cbde6c6a6d2b1599ff90f932304aab7e32fce89 ]
In case of memory allocation failure, a negative error code should
be returned.
Fixes: 785e5c616c849 ("crypto: mediatek - Add crypto driver support for some MediaTek chips")
Cc: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/crypto/ixp4xx_crypto.c')
0 files changed, 0 insertions, 0 deletions