crypto: omap-aes - Fix broken pm_runtime_and_get() usage
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 17 Dec 2021 09:03:30 +0000 (10:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Jan 2022 10:05:06 +0000 (11:05 +0100)
commit7f429ce71edb7a32264520d59ee0930f000c9c9c
treeb431b6bcca93f94a5dc7fd2751b5bee880d9b581
parent8b6d58859e8fb26a718aba4417a2611a02e4e628
crypto: omap-aes - Fix broken pm_runtime_and_get() usage

commit c2aec59be093bd44627bc4f6bc67e4614a93a7b6 upstream.

This fix is basically the same as 3d6b661330a7 ("crypto: stm32 -
Revert broken pm_runtime_resume_and_get changes"), just for the omap
driver. If the return value isn't used, then pm_runtime_get_sync()
has to be used for ensuring that the usage count is balanced.

Fixes: 1f34cc4a8da3 ("crypto: omap-aes - Fix PM reference leak on omap-aes.c")
Cc: stable@vger.kernel.org
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/crypto/omap-aes.c