commit | 8cbde6c6a6d2b1599ff90f932304aab7e32fce89 | [log] [tgz] |
---|---|---|
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | Sun Aug 02 19:15:32 2020 +0800 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Aug 21 14:45:27 2020 +1000 |
tree | 4416e007193aa5dbee979240414aca3206f2c6ad | |
parent | e62291c1d9f4f4398459a3a1a17446428f939b9a [diff] |
crypto: mediatek - Fix wrong return value in mtk_desc_ring_alloc() 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>