crypto: omap-aes - add error check for pm_runtime_get_sync
authorNishanth Menon <nm@ti.com>
Wed, 4 Dec 2013 01:43:13 +0000 (19:43 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 5 Dec 2013 13:28:43 +0000 (21:28 +0800)
commitf7b2b5dd6a62a47e871627c71ed01aa3482154d9
tree4de401a7a20a39b801b5d2e672e7c3e9b5afc125
parentc0e656b7a6e1ac03b2921d49211a735893efd544
crypto: omap-aes - add error check for pm_runtime_get_sync

The AES driver currently assumes that pm_runtime_get_sync will always
succeed, which may not always be true, so add error handling for the
same.

This scenario was reported in the following bug:
place.  https://bugzilla.kernel.org/show_bug.cgi?id=66441

Reported-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de>
Signed-off-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-aes.c