]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
crypto: mediatek - Fix wrong return value in mtk_desc_ring_alloc()
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Sun, 2 Aug 2020 11:15:32 +0000 (19:15 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Aug 2020 04:45:27 +0000 (14:45 +1000)
commit8cbde6c6a6d2b1599ff90f932304aab7e32fce89
tree4416e007193aa5dbee979240414aca3206f2c6ad
parente62291c1d9f4f4398459a3a1a17446428f939b9a
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>
drivers/crypto/mediatek/mtk-platform.c