]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: sa2ul - Fix pm_runtime_get_sync() error checking
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 9 Sep 2020 09:45:28 +0000 (12:45 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 18 Sep 2020 07:20:10 +0000 (17:20 +1000)
commit546fe1d76c2c3d22492b8f7db1cf3296887e1747
tree31560881ebf8d7180ab0a4d4c9d087c2b80cf7e6
parent9e2c535bd59ade5c7b5d41ab406ca2ec6513c88e
crypto: sa2ul - Fix pm_runtime_get_sync() error checking

The pm_runtime_get_sync() function returns either 0 or 1 on success but
this code treats a return of 1 as a failure.

Fixes: f772a2643112 ("crypto: sa2ul - Add crypto driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sa2ul.c