From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> commit 5278275c1758a38199b43530adfc50098f4b41c7 upstream. If qce_check_version() fails, we should jump to err_dma as we already called qce_dma_request() a couple lines before. Cc: stable@xxxxxxxxxxxxxxx Fixes: ec8f5d8f6f76 ("crypto: qce - Qualcomm crypto engine driver") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> Reviewed-by: Neil Armstrong <neil.armstrong@xxxxxxxxxx> Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/crypto/qce/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/crypto/qce/core.c +++ b/drivers/crypto/qce/core.c @@ -247,7 +247,7 @@ static int qce_crypto_probe(struct platf ret = qce_check_version(qce); if (ret) - goto err_clks; + goto err_dma; spin_lock_init(&qce->lock); tasklet_init(&qce->done_tasklet, qce_tasklet_req_done, Patches currently in stable-queue which might be from bartosz.golaszewski@xxxxxxxxxx are queue-6.13/gpio-gpio_grgpio-should-depend-on-of.patch queue-6.13/gpio-pca953x-improve-interrupt-support.patch queue-6.13/crypto-qce-fix-priority-to-be-less-than-armv8-ce.patch queue-6.13/gpio-sim-lock-hog-configfs-items-if-present.patch queue-6.13/crypto-qce-unregister-previously-registered-algos-in-error-path.patch queue-6.13/firmware-qcom-scm-fix-missing-read-barrier-in-qcom_scm_is_available.patch queue-6.13/crypto-qce-fix-goto-jump-in-error-path.patch