crypto: omap-sham - Check for return value from pm_runtime_get_sync
authorPali Rohár <pali.rohar@gmail.com>
Sun, 8 Mar 2015 10:01:01 +0000 (11:01 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2015 06:57:43 +0000 (14:57 +0800)
commit604c31039dae4653f33003d08c91ef58b70b5e63
treee5621a2bae539aac9c5f413a5423749f13ceb41c
parentca7fc7e962fa067ba31f76a6e5828537394f6481
crypto: omap-sham - Check for return value from pm_runtime_get_sync

Function pm_runtime_get_sync could fail and we need to check return
value to prevent kernel crash.

Signed-off-by: Pali Rohár <pali.rohar@gmail.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-sham.c