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)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Dec 2021 03:18:28 +0000 (14:18 +1100)
commitc2aec59be093bd44627bc4f6bc67e4614a93a7b6
treefac646c9b3f0e738342bd48c5e6a54d4afc6b4fd
parentace7660691f8a23f1a72e065babd176aed3605b9
crypto: omap-aes - Fix broken pm_runtime_and_get() usage

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>
drivers/crypto/omap-aes.c