]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: s5p-sss - Add error handling in s5p_aes_probe()
authorTang Bin <tangbin@cmss.chinamobile.com>
Thu, 21 Oct 2021 01:34:22 +0000 (09:34 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:35:57 +0000 (11:35 +0100)
commit1955e6f3d4526b13ea9984834ea972fd3e54dfc6
treed78612a0b1fde5d948c1924e265c7ca15184f0f7
parent68f5f8e20be75e86e85bc347c6679591dbcad3af
crypto: s5p-sss - Add error handling in s5p_aes_probe()

commit a472cc0dde3eb057db71c80f102556eeced03805 upstream.

The function s5p_aes_probe() does not perform sufficient error
checking after executing platform_get_resource(), thus fix it.

Fixes: c2afad6c6105 ("crypto: s5p-sss - Add HASH support for Exynos")
Cc: <stable@vger.kernel.org>
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/s5p-sss.c